[Python-Dev] Is it intentional that "sys.__debug__ = 1" is illegal in Python 2.7?

Barry Warsaw barry at python.org
Fri Jul 30 22:53:25 CEST 2010


On Jul 30, 2010, at 01:42 PM, Guido van Rossum wrote:

>Well it is a reserved name so those packages that were setting it
>should have known that they were using undefined behavior that could
>change at any time.

Shouldn't it be described here then?

http://docs.python.org/reference/lexical_analysis.html#identifiers

-Barry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-dev/attachments/20100730/3cb9a4c3/attachment.pgp>


More information about the Python-Dev mailing list