This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author amaury.forgeotdarc
Recipients amaury.forgeotdarc, nullnil, pitrou
Date 2009-08-21.12:34:57
SpamBayes Score 1.1510056e-06
Marked as misclassified No
Message-id <1250858099.98.0.754564433308.issue6750@psf.upfronthosting.co.za>
In-reply-to
Content
The TextIOWrapper class is not thread-safe, because it calls [the
equivalent of] self.buffer.write(self.pending_bytes) before clearing
self.pending_bytes.
Of course the write() function will release the GIL, and another thread
may send the same pending_bytes again.

Patch is attached. Antoine, can you review it?

(_pyio.TextIOWrapper does no buffering.)
History
Date User Action Args
2009-08-21 12:35:00amaury.forgeotdarcsetrecipients: + amaury.forgeotdarc, pitrou, nullnil
2009-08-21 12:34:59amaury.forgeotdarcsetmessageid: <1250858099.98.0.754564433308.issue6750@psf.upfronthosting.co.za>
2009-08-21 12:34:58amaury.forgeotdarclinkissue6750 messages
2009-08-21 12:34:58amaury.forgeotdarccreate