Message70816
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. |
|
Date |
User |
Action |
Args |
2008-08-07 10:54:55 | ocean-city | set | recipients:
+ ocean-city |
2008-08-07 10:54:55 | ocean-city | set | messageid: <1218106495.5.0.346677441059.issue3515@psf.upfronthosting.co.za> |
2008-08-07 10:54:50 | ocean-city | link | issue3515 messages |
2008-08-07 10:54:49 | ocean-city | create | |
|