[Python-Dev] Is file.readlines(sizehint=N) broken on 2.7? (original) (raw)
Guido van Rossum guido at python.org
Fri Apr 5 20:50:12 CEST 2013
- Previous message: [Python-Dev] Is file.readlines(sizehint=N) broken on 2.7?
- Next message: [Python-Dev] Is file.readlines(sizehint=N) broken on 2.7?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
It's a hint, remember? :-) It does work, it's just rounded up to a fairly large number in some implementations.
On Fri, Apr 5, 2013 at 11:24 AM, Giampaolo RodolĂ <g.rodola at gmail.com> wrote:
2013/4/5 INADA Naoki <songofacandy at gmail.com>:
The builtin open() was replaced with io.open(). It's difference between file.readlines() and io.IOBase.readlines(). Should that justify this difference in behavior? Apparently on 2.X sizehint does not have any effect as far as I can see. --- Giampaolo https://code.google.com/p/pyftpdlib/ https://code.google.com/p/psutil/ https://code.google.com/p/pysendfile/
Python-Dev mailing list Python-Dev at python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/guido%40python.org
-- --Guido van Rossum (python.org/~guido)
- Previous message: [Python-Dev] Is file.readlines(sizehint=N) broken on 2.7?
- Next message: [Python-Dev] Is file.readlines(sizehint=N) broken on 2.7?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]