Re: [Python-Dev] Is it intentional that sys.__debug__ = 1 isillegal in Python 2.7?

2010-08-01 Thread Terry Reedy
On 7/31/2010 5:02 PM, Guido van Rossum wrote: But yes, the docs should clarify that *any* use of __*__ names, in *any* context, that does not follow explicitly documented use, is subject to breakage without warning. http://bugs.python.org/issue9451 Strengthen __*__ system name warning My

Re: [Python-Dev] Is it intentional that sys.__debug__ = 1 isillegal in Python 2.7?

2010-07-31 Thread Barry Warsaw
On Jul 30, 2010, at 05:23 PM, Eric Snow wrote: First appeared in docs for 2.6 (October 02, 2008). Not sure if that is when it first because constrained this way. http://docs.python.org/library/constants.html?highlight=__debug__#__debug__ Thanks Eric, this is probably the right section of the

Re: [Python-Dev] Is it intentional that sys.__debug__ = 1 isillegal in Python 2.7?

2010-07-31 Thread Guido van Rossum
On Sat, 31 Jul 2010 07:44:42 am Guido van Rossum wrote: http://docs.python.org/reference/lexical_analysis.html#reserved-classes-of-identifiers On Jul 31, 2010, at 08:32 AM, Steven D'Aprano wrote: I have a small concern about the wording of that, specifically this: System-defined names. These

Re: [Python-Dev] Is it intentional that sys.__debug__ = 1 isillegal in Python 2.7?

2010-07-30 Thread Eric Snow
First appeared in docs for 2.6 (October 02, 2008). Not sure if that is when it first because constrained this way. http://docs.python.org/library/constants.html?highlight=__debug__#__debug__ -eric -Original Message- From: python-dev-bounces+esnow=verio@python.org