[Patches] Parsing strings with \r\n or \r
Greg Ward
gward@python.net
Mon, 29 May 2000 21:49:43 -0400
On 28 May 2000, Tim Peters said:
> IMO there should be *no* #ifdefs in any of this logic: regardless of
> platform, and regardless of program source (be it file, string, file-like
> object, ...), Python tokenizers should recognize all of \r\n, \n, and \r as
> terminating a line (with \r\n viewed as a single line terminator when it
> appears, rather than as \r first and then an empty line ending with \n).
I'll buy that. I deliberately left the
#ifdef macintosh
whine and die if "\r" seen
#endif
code intact, but I'd happily jettison it.
Greg
--
Greg Ward - programmer-at-big gward@python.net
http://starship.python.net/~gward/
Health is merely the slowest possible rate at which one can die.