On Mon, Oct 24, 2011 at 4:18 PM, Jason Swails <jason.swa...@gmail.com> wrote:
> my_csv = csv.writer(open('temp.1.csv', 'wb'))
>

Have you confirmed, or can you confirm, whether or not the file gets
closed automatically when the writer gets destructed? If so, all you
need to do is:

my_csv = something_else
# or:
del my_csv

to unbind what I assume is the only reference to the csv.writer, upon
which it should promptly clean itself up.

ChrisA
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to