Python3: Reading a text/binary mixed file

Paulo da Silva p_s_d_a_s_i_l_v_a_ns at netcabo.pt
Wed Mar 11 15:29:55 EDT 2015


On 11-03-2015 01:09, Cameron Simpson wrote:
> On 10Mar2015 22:38, Paulo da Silva <p_s_d_a_s_i_l_v_a_ns at netcabo.pt> wrote:
>> On 10-03-2015 04:14, Cameron Simpson wrote:
...

> 
> Since binary files (returning bytes from reads) also have a convenient
> readline method looking for byte 10 ('\n') this makes you current task
> tractable
...

That was the big part of my problem.
I wrongly assumed that readline was not available in binary mode.
I should have tried it in first place :-)

Thanks




More information about the Python-list mailing list