readline() with arbitrary end of lines

Javier Bezos see.below at no.spam.es
Thu Sep 14 07:48:54 EDT 2000


Keith Ray <k_j_r_a_y at ix.netcom.com> wrote:

> >
> >I think that I can define a class with a buffer, so that I
> >can analyze the contents and then extract the lines. What a
> >complication for such a simple task!
> 
> You _could_ find the relevant code in the Python sources, and add code
> to permit you to specify a newline string, or have the software guess
> the newline string from the file's contents.
> 
> Hopefully, once it is working, that new code could be added to the 
> standard python source tree.

Drawbacks: First, I cannot distribute the script. Second, I have no
idea on C.

Regards
___________________________________________________________
Javier Bezos              | TeX y tipografia
jbezos at wanadoo dot es  | http://perso.wanadoo.es/jbezos/




More information about the Python-list mailing list