This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ncoghlan
Recipients Douglas.Alan, amaury.forgeotdarc, benjamin.peterson, eric.araujo, facundobatista, georg.brandl, ncoghlan, nessus42, pitrou, r.david.murray, ralph.corderoy, rhettinger, ysj.ray
Date 2010-07-22.22:15:10
SpamBayes Score 0.00032901912
Marked as misclassified No
Message-id <AANLkTilnBbOOiqkDNCE2u5jQRx1PyqAHvdNNvV6ZdRe7@mail.gmail.com>
In-reply-to <1279821249.3205.31.camel@localhost.localdomain>
Content
On Fri, Jul 23, 2010 at 3:54 AM, Antoine Pitrou <report@bugs.python.org> wrote:
>
> Antoine Pitrou <pitrou@free.fr> added the comment:
>
>> Personally, I think that this functionality should be built into
>> Python's readlines. That's where a typical person would expect it to
>> be, and this is something that is supported by most other scripting
>> language I've used.
>
> Adding it to readline() and/or readlines() would modify the standard IO
> Abstract Base Classes, and would therefore probably need discussion on
> python-dev.

That's also the reason why I'm suggesting a separate readrecords()
method - the appropriate ABC should be able to implement it as a
concrete method based on something like the recipe above.
History
Date User Action Args
2010-07-22 22:15:12ncoghlansetrecipients: + ncoghlan, georg.brandl, rhettinger, facundobatista, amaury.forgeotdarc, pitrou, benjamin.peterson, nessus42, eric.araujo, ralph.corderoy, r.david.murray, ysj.ray, Douglas.Alan
2010-07-22 22:15:10ncoghlanlinkissue1152248 messages
2010-07-22 22:15:10ncoghlancreate