A fun python CLI program for all to enjoy!

Gregory Ewing greg.ewing at canterbury.ac.nz
Sat May 7 02:24:45 EDT 2016


DFS wrote:
> Maybe it worked because the last time the file was written to was in a 
> for loop, so I got lucky and the files weren't truncated?  Don't know.

It "works" because CPython disposes of objects as soon
as they are not referenced anywhere. Other implementations
of Python (e.g. Jython, PyPy) might not do that.

-- 
Greg



More information about the Python-list mailing list