Roundup Robot added the comment:
New changeset 7513bd184a01 by Serhiy Storchaka in branch '2.7':
Issue #11311: StringIO.readline(0) now returns an empty string as all other
http://hg.python.org/cpython/rev/7513bd184a01
--
nosy: +python-dev
___
Python
Serhiy Storchaka added the comment:
Fixed. Thank you for the report, Ville.
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11311
Changes by Serhiy Storchaka storch...@gmail.com:
--
assignee: - serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11311
___
___
Changes by Serhiy Storchaka storch...@gmail.com:
--
components: +IO
keywords: +easy
nosy: +serhiy.storchaka
stage: - needs patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11311
___
Serhiy Storchaka added the comment:
Here is a very simple patch.
--
keywords: +patch
stage: needs patch - patch review
Added file: http://bugs.python.org/file28974/StringIO_readline0.patch
___
Python tracker rep...@bugs.python.org
New submission from Ville Skyttä ville.sky...@iki.fi:
Python 2.7 (r27:82500, Sep 16 2010, 18:02:00)
[GCC 4.5.1 20100907 (Red Hat 4.5.1-3)] on linux2
Type help, copyright, credits or license for more information.
import StringIO
StringIO.StringIO(foo).readline(0)
'foo'
I don't think this is
Alex alex.gay...@gmail.com added the comment:
Fun fact: io.StringIO does the right thing, but _io and _pyio.
--
nosy: +alex
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11311
___