when should I explicitly close a file?

Lawrence D'Oliveiro ldo at geek-central.gen.new_zealand
Thu Apr 22 02:53:51 CEST 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