[Python-Dev] Patch 595601

Skip Montanaro skip@pobox.com
Mon, 23 Jun 2003 13:29:58 -0500


    >> 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?

    Barry> There could be lots of reasons why a file's refcount was greater
    Barry> than 1 without threads entering into the picture.

Yeah, but they probably all represent some sort of bug.  How about a warning
which is disabled by default but which the programmer can enable?

Skip