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
--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to