Message91823
| 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:00 | amaury.forgeotdarc | set | recipients:
+ amaury.forgeotdarc, pitrou, nullnil |
| 2009年08月21日 12:34:59 | amaury.forgeotdarc | set | messageid: <1250858099.98.0.754564433308.issue6750@psf.upfronthosting.co.za> |
| 2009年08月21日 12:34:58 | amaury.forgeotdarc | link | issue6750 messages |
| 2009年08月21日 12:34:58 | amaury.forgeotdarc | create |
|