[Python-ideas] Iterating non-newline-separated files should be easier
Paul Moore
p.f.moore at gmail.com
Wed Jul 23 10:14:31 CEST 2014
On 23 July 2014 05:24, Andrew Barnert <abarnert at yahoo.com> wrote:
>> This is also an example of why I'm struggling to understand how an
>> open() parameter "solves all the cases". There's no explicit open()
>> call here, so how do you specify the record separator? Seeing how you
>> propose this would work would be really helpful to me.
>
> The open function is just a shortcut to constructing a stack of io classes;
Ah, yes, I get what you're saying now. I was reading your proposal too
literally as being about "open", and forgetting you can use the
underlying classes to rewrap existing streams.
Thanks for your patience.
Paul
More information about the Python-ideas
mailing list