[New-bugs-announce] [issue15449] Optional size argument for readline()

Sworddragon report at bugs.python.org
Wed Jul 25 22:15:48 CEST 2012

New submission from Sworddragon <sworddragon2 at aol.com>:

For file objects the read() function has the optional size argument to limit the data that will be read. I'm wondering why there isn't such an argument for readline(). Theoretically lines in a file could have million of characters and even much more. An optional limit could prevent that a high amount of data will be load into the memory.

components: Library (Lib)
messages: 166422
nosy: Sworddragon
priority: normal
severity: normal
status: open
title: Optional size argument for readline()
type: enhancement
versions: Python 3.2

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list