New submission from Hirokazu Yamamoto <[EMAIL PROTECTED]>: 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. ---------- messages: 70816 nosy: ocean-city severity: normal status: open title: refcount gc bug? versions: Python 2.5, Python 2.6 _______________________________________ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3515> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com