Message111220
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. |
|
Date |
User |
Action |
Args |
2010-07-22 22:15:12 | ncoghlan | set | recipients:
+ 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:10 | ncoghlan | link | issue1152248 messages |
2010-07-22 22:15:10 | ncoghlan | create | |
|