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
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