[Python-Dev] Re: [Python-checkins] python/dist/src/Python compile.c, 2.306, 2.307

A.M. Kuchling amk at amk.ca
Fri Jul 16 15:18:11 CEST 2004

On Fri, Jul 16, 2004 at 05:13:41AM -0700, 
	rhettinger at users.sourceforge.net wrote:
> Treat None as a constant.

This is probably something stupid on my part, but in my copy of the
built tree it's still a syntax warning:

Python 2.4a1+ (#13, Jul 16 2004, 09:11:38)
[GCC 3.3.2 (Debian)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> None = 0
<stdin>:1: SyntaxWarning: assignment to None
>>> print None   # But assignment has no effect... perhaps due to this optim.?
>>> def f():
...    None = 0
<stdin>:2: SyntaxWarning: assignment to None
>>> f()

My CVS tree is up-to-date, and I did a "make clean".  Is everyone else
getting the SyntaxError for this?


More information about the Python-Dev mailing list