Readline and record separator
bdesth.quelquechose at free.quelquepart.fr
Tue Oct 30 20:50:24 CET 2007
Jeff a écrit :
> If it's a short file you could slurp the entire file and then split it
> however you like using regular expressions.
My my my...
> I'm not sure if you can alter it,
You can. But it hopefully won't alter your binary-compiled system libs.
IOW : it's so (obviously) useless that no one even bothered doing
anything to prevent you from altering it !-)
> holds the value that
> is accessed when file.readlines() splits lines. Conceivably, if it
> were set to 'FOO', 'FOO' would be used to determine the EOL string.
Hopefully not. Anyway, the answer is elsewhere (hint: import csv).
More information about the Python-list