[issue19215] StringIO.StringIO('foo').readline(0) == 'foo'

2013-10-10 Thread R. David Murray
R. David Murray added the comment: Oops, I was too quick with that nosy. This bug is fixed in io.StringIO, which means it is fixed in Python3. And sorry to say, it shouldn't be fixed in a maintenance release, since it is a behavior change that could break working programs. -- nosy:

[issue19215] StringIO.StringIO('foo').readline(0) == 'foo'

2013-10-10 Thread R. David Murray
Changes by R. David Murray : -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue19215] StringIO.StringIO('foo').readline(0) == 'foo'

2013-10-10 Thread Zdeněk Pavlas
New submission from Zdeněk Pavlas: The behavior contradicts documentation and is inconsistent with both cStringIO and File objects. Patch attached. >>> StringIO.StringIO('foo').readline(0) 'foo' >>> cStringIO.StringIO('foo').readline(0) '' >>> open('/etc/passwd').readline(0) '' -- com