It seems you too have missed the difference between deleting some reference to the object (as del does) and finalising.
On 20/08/2010 8:23 PM, "Donny Viszneki" <[email protected]> wrote: Armin: Sakesun used "del f" and it appears you did not. In Python IIRC, an explicit call to del should kick off the finalizer to flush and close the file! open('x', 'w').write('hello') alone does not imply the file instance (return value of open()) has been finalized because the garbage collector may not have hit it yet. Jython and IronPython are pretty much guaranteed to behave differently under a wide variety of circumstances when it comes to the garbage collector. Do not rely on the garbage collector for program semantics! Because Sakesun has used "del f" it should be quite a concern that the file has not been finalized properly! On Fri, Aug 20, 2010 at 5:57 AM, Armin Rigo <[email protected]> wrote: > Hi Sakesun, > > On Thu, Aug ... -- http://codebad.com/ _______________________________________________ [email protected] http://codespeak.net/mailman/...
_______________________________________________ [email protected] http://codespeak.net/mailman/listinfo/pypy-dev
