Commonly-used names in the Python standard library

Marko Rauhamaa marko at pacujo.net
Thu Feb 20 12:28:30 CET 2014


Chris Angelico <rosuav at gmail.com>:

> On Thu, Feb 20, 2014 at 9:22 PM, Marko Rauhamaa <marko at pacujo.net> wrote:
>>   py35.unless x > 7:
>>       return
>
> What about return? Are you allowed to namespace that? And 'from' and
> 'import' and '*'?

Old keywords are guaranteed not to clash with programs. Introducing new
keywords runs that risk. Hence, C had to introduce the ugly _Bool
keyword.

> If you're curious about the full proposal, it's PEP 463, an expression
> form of the 'except' statement. The latest draft PEP can be found
> here:
>
> https://raw2.github.com/Rosuav/ExceptExpr/master/pep-0463.txt

A coworker pointed out that the gist of the PEP has already been
implemented by <URL: https://pypi.python.org/pypi/fuckit>.


Marko



More information about the Python-list mailing list