Author ocean-city
Recipients ocean-city
Date 2008-08-07.10:54:49
SpamBayes Score 0.00114397
Marked as misclassified No
Message-id <1218106495.5.0.346677441059.issue3515@psf.upfronthosting.co.za>
In-reply-to
Content
I'm not sure this is bug or not, but shouldn't `io' be collected by
refcount GC? This happens on python2.5 but doesn't happend on python3.0.

import os

def foo():
    io = open("a.txt", "w")
    raise RuntimeError()

try:
    foo()
except:
    pass

os.remove("a.txt") # WindowsError (Error32)
    # Process cannot access to the file.
    # Another process is using it.
History
Date User Action Args
2008-08-07 10:54:55ocean-citysetrecipients: + ocean-city
2008-08-07 10:54:55ocean-citysetmessageid: <1218106495.5.0.346677441059.issue3515@psf.upfronthosting.co.za>
2008-08-07 10:54:50ocean-citylinkissue3515 messages
2008-08-07 10:54:49ocean-citycreate