[Python-3000] canonicalization [was: On PEP 3116: new I/O base classes]

Guido van Rossum guido at python.org
Fri Jun 22 17:58:04 CEST 2007


On 6/21/07, "Martin v. Löwis" <martin at v.loewis.de> wrote:
[Guido]
> > Have we agreed on the level of
> > normalization for source code yet? I'm pretty sure we have agreed on
> > *when* it happens, i.e. (logically) before the lexer starts scanning
> > the source code.
>
> That isn't actually my view: I would apply normalization *only* to
> identifiers, i.e. leave string literals unmodified. If people would
> rather see normalization applied to the entire input, that would be
> an option, of course (although perhaps more expensive to implement,
> as you need to perform it on all source, even if that source turns
> out to be ASCII only).

OK, sorry, I must've stopped reading that thread at the wrong moment.
No need to change it on my behalf.

-- 
--Guido van Rossum (home page: http://www.python.org/~guido/)


More information about the Python-3000 mailing list