2.3 encoding parsing bug

"Martin v. Löwis" martin at v.loewis.de
Wed Feb 18 17:43:41 EST 2004


Edward K. Ream wrote:
> Pep 263 does not discuss the issue that bites Leo: the more general the re
> the more likely there is to be unintended consequences.  True, one doesn't
> want to limit the matches that one _does_ want with encoding lines produced
> by other editors.  So it's not clear exactly what re to choose.

AFAIR, this effect is actually *intended*. Originally, only the -*-
syntax was proposed, but then there were objections "what about other
editors?" Then the re expression was designed.

Regards,
Martin




More information about the Python-list mailing list