[Python-Dev] Patch 595601

Greg Ewing greg@cosc.canterbury.ac.nz
Wed, 25 Jun 2003 13:11:18 +1200 (NZST)


> Because Python resets a Python file object's stream to NULL when a Python
> file object is closed,

If that's the only problem, then surely it's just a matter of correct
GIL usage? I.e. if a thread using a file object releases the GIL, it
should re-acquire it and check that the FILE * in the file object is
still valid before using it again.

Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury,	   | A citizen of NewZealandCorp, a	  |
Christchurch, New Zealand	   | wholly-owned subsidiary of USA Inc.  |
greg@cosc.canterbury.ac.nz	   +--------------------------------------+