[Python-Dev] PEP 385: the eol-type issue

Antoine Pitrou solipsis at pitrou.net
Fri Aug 7 14:12:15 CEST 2009

M.-A. Lemburg <mal <at> egenix.com> writes:
> IMHO, it would be a lot better to add full Unicode support
> for line breaks to the io layer. Given that the code for the
> complicated handling of the CRLF combination is already there,
> it's not difficult to add support for the remaing line break
> characters.

I'm not against anything in principle here, but I'd just like to point out two

1. Changing line break semantics would break compatibility with the current
behaviour, and it would also diverge from what the `newline` parameter
specifies; this may be annoying if, for example, the TextIOWrapper class is used
to parse some network protocols with a rigorous line ending definition

2. It would be useful to have some input by the original designers of the IO
library (the PEP lists Guido, Daniel Stutzbach and Mike Verdone, but I suppose
other people were involved)



More information about the Python-Dev mailing list