Andrew <and...@learnirvana.com> added the comment:

Just got this behavior, with readlines(), which is unsurprising since it 
internally uses read() as described in the original bug report.

The break on line 468 of codecs.py seems to be the problem, it fixes it if I 
remove this conditional locally.

http://hg.python.org/cpython/file/f6a207d86154/Lib/codecs.py#l466

I may be overlooking something, but I would assume this should be checking if 
the character buffer extends to the EOF of the underlaying stream at this point?

As stated before can be reproduced by:
f = codecs.open(...)
f.read()
f.readlines()

----------
nosy: +Andrew.S

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue14475>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to