when should I explicitly close a file?

Lawrence D'Oliveiro ldo at geek-central.gen.new_zealand
Wed Apr 21 20:53:51 EDT 2010


In message <4bc9aadb$1 at dnews.tpgi.com.au>, Lie Ryan wrote:

> Since in python nothing is guaranteed about implicit file close ...

It is guaranteed that objects with a reference count of zero will be 
disposed. In my experiments, this happens immediately.



More information about the Python-list mailing list