[Python-Dev] Patch 595601
Skip Montanaro
skip@pobox.com
Mon, 23 Jun 2003 13:10:50 -0500
Tim> http://www.python.org/sf/595601
Tim> has been in limbo a long time. Looks like it popped up in real
Tim> life, in Zope last week.
Tim> Quickie: if you let run this long enough, it will die with a
Tim> segfault (and under any version of Python):
...
Isn't this a case of "so don't do that"? I've never encountered this
before, but then I don't close files in one thread while another holds a
reference.
Would it be reasonable to raise an error or warning if a file's close()
method was called when the reference count was greater than 1?
Skip