python: what happens to opened file if i quit before it is closed?
<p>i am opening a csv file:</p>

<pre><code>def get_file(start_file): #opens original file, reads it to array
  with open(start_file,'rb') as f:
    data=list(csv.reader(f))
    header=data[0]
    counter=collections.defaultdict(int)
    for row in data:
      counter[row[10]]+=1
  return (data,counter,header)
</code></pre>

<p>does the file stay in memory if i quit the program inside the <code>WITH</code> loop?</p>

<p>what happens to the variables in general inside the program when i quit the program without setting all variables to <code>NULL</code>?</p>
