[Python-Dev] Is file.readlines(sizehint=N) broken on 2.7?
songofacandy at gmail.com
Fri Apr 5 19:27:07 CEST 2013
The builtin open() was replaced with io.open().
It's difference between file.readlines() and io.IOBase.readlines().
On Sat, Apr 6, 2013 at 2:15 AM, Giampaolo Rodolà <g.rodola at gmail.com> wrote:
> with open('test-xxx', 'w') as f:
> with open('test-xxx', 'r') as f:
> On Python 3.3 I get:
> ...while on Python 2.7:
> ['aaa\n', 'bbb\n', 'ccc']
> Is this a bug or I'm missing something?
> --- Giampaolo
> Python-Dev mailing list
> Python-Dev at python.org
INADA Naoki <songofacandy at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-Dev