[issue8260] When I use codecs.open(...) and f.readline() follow up by f.read() return bad result
Serhiy Storchaka
report at bugs.python.org
Fri Jan 10 20:40:39 CET 2014
Serhiy Storchaka added the comment:
Here is revised patch.
* Behavior is changed less. read() is less greedy and uses characters from the buffer when read() is called with only one argument (size). It is now a little closer to io stream's read() than with previous patch.
* Added tests for cases of issue12446 and issue16636.
* Fixed read() for for the TransformCodecTest.test_read test added in 3.4. Actually the uu_codec and zlib_codec are broken.
----------
versions: -Python 3.2
Added file: http://bugs.python.org/file33410/codecs_read-3.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8260>
_______________________________________
More information about the Python-bugs-list
mailing list