[Python-Dev] PEP 263 considered faulty (for some Japanese)

Martin v. Loewis martin@v.loewis.de
18 Mar 2002 09:06:54 +0100


"Stephen J. Turnbull" <stephen@xemacs.org> writes:

> Emacs naming compatibility is of ambiguous value in the current form
> of the PEP, since the cookie only applies to Unicode string literals.

That is simply not true. The encoding applies to the entire source
code.

It is only that it is processed just for Unicode literals, and this is
a documented deviation of the language implementation from the
language spec.

> The Emacs coding cookie applies to the whole file.  So this means that
> to implement a Python mode that allows (eg) a hexl mode on ordinary
> string literals but regular text mode on Unicode string literals,
> Emacs must _ignore_ Python coding cookies!

Nonsense.

Regards,
Martin