[Python-ideas] Iterating non-newline-separated files should be easier

Greg Ewing greg.ewing at canterbury.ac.nz
Sun Jul 20 06:03:20 CEST 2014


Paul Moore wrote:
> And for that matter, how would you remove an
> arbitrary separator? Maybe line = line[:-1] works, but what if at some
> point people ask for multi-character separators

If the newline mechanism is re-used, it would
convert whatever separator is used into '\n'.

-- 
Greg


More information about the Python-ideas mailing list