[Python-3000] PEP 3131 accepted

Ka-Ping Yee python at zesty.ca
Thu May 24 23:35:47 CEST 2007


On Thu, 24 May 2007, [ISO-8859-1] "Martin v. Löwis" wrote:
> > Much of my concerns could be addressed through the use of commandline,
> > environment variable, or in-source code definitions of what are
> > allowable identifier characters.
[...]
> Not sure (anymore) what problem you are trying to solve, but it might be
> that the coding directive already *is* the solution. If you want to
> constrain characters that you can use in a single source file, adding
> a coding directive will automatically impose such a constraint (namely,
> to the characters available in the encoding).
>
> In particular, if you set the encoding to us-ascii, you have restricted
> your source file to ASCII only.

Alas, the coding directive is not good enough.  Have a look at this:

    http://zesty.ca/python/tricky.png

That's an image of a text editor containing some Python code.  Can you
tell whether running it (post-PEP-3131) will delete your .bashrc file?


-- ?!ng


More information about the Python-3000 mailing list