A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2004-July/046271.html below:

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

[Python-Dev] Re: [Python-checkins] python/dist/src/Python compile.c, 2.306, 2.307A.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.?
None
>>> 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?

--amk

More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4