[Python-ideas] relaxing keyword usage restrictions

Greg Ewing greg.ewing at canterbury.ac.nz
Sun Sep 11 03:10:36 CEST 2011

Stephen J. Turnbull wrote:

> Except that as somebody pointed out, there is a need.  It turns out
> that users want keywords in the form of "constants that evaluate to
> themselves".

You don't strictly *need* them, though, because a variable that
evaluates to the desired constant has much the same effect.
(Except for the possibility of shadowing, to which the Pythonic
answer is "don't do that, then".)


More information about the Python-ideas mailing list