Message111220
| 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: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 |
|