Message210041
But how then other values of newline except '\n' can be useful?
The problem is that newline converting is applied twice, in write() and in read(). When constructor uses write() and getvalue() returns same value as read(), we have no chance to get newlines encoded or decoded only once. Current results for newline != '\n' looks meanless to me.
Here is my half-baked patch. It fixes only _pyio.StringIO, but _io.StringIO are still partially broken. The patch also contains new tests. |
|
Date |
User |
Action |
Args |
2014-02-02 22:31:49 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, pitrou, benjamin.peterson, stutzbach, hynek |
2014-02-02 22:31:49 | serhiy.storchaka | set | messageid: <1391380309.45.0.334751128789.issue20435@psf.upfronthosting.co.za> |
2014-02-02 22:31:49 | serhiy.storchaka | link | issue20435 messages |
2014-02-02 22:31:49 | serhiy.storchaka | create | |
|