of destructors, open files and garbage collection
massimo s.
devicerandom at gmail.com
Sat May 26 08:57:50 EDT 2007
> No, it removes the association between the name 'item' and the object it is
> currently bound to. In CPython, removing the last such reference will
> cause the object to be gc'ed. In other implementations, actual deletion
> may occur later. You probably should close the files directly and arrange
> code so that you can do so before too many are open.
Thanks a lot, I'll follow that way.
m.
More information about the Python-list
mailing list