Message137262
| Author |
vstinner |
| Recipients |
pitrou, vstinner |
| Date |
2011年05月30日.13:07:54 |
| SpamBayes Score |
0.00018389108 |
| Marked as misclassified |
No |
| Message-id |
<1306760876.36.0.403847066891.issue12215@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
textiowrapper_interlaced_read_write.patch: TextIOWrapper.write() calls self.seek(self.tell()) if it has a decoder or if snapshot is not None.
I suppose that we can do better, but at least it does fix this issue.
"read(); write(); write()" only calls self.seek(self.tell()) once, at the first write. So I don't think that it changes anything with performances.
In which case snapshot can be not different than None, whereas decoder is None? |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2011年05月30日 13:07:56 | vstinner | set | recipients:
+ vstinner, pitrou |
| 2011年05月30日 13:07:56 | vstinner | set | messageid: <1306760876.36.0.403847066891.issue12215@psf.upfronthosting.co.za> |
| 2011年05月30日 13:07:55 | vstinner | link | issue12215 messages |
| 2011年05月30日 13:07:55 | vstinner | create |
|