> I think it's a small project. We've got a new node type in the > grammar -- None -- and we'll need a new opcode -- LOAD_NONE. The > compiler just needs to generate a LOAD_NONE for every None node. > > Does the parser prevent assignment to None? Or does the compiler need > to check for the use of None in an assignment? The compiler needs to check. It's just like assigning to a literal: the parser has no power to prevent this, so the compiler has to act as a safeguard. --Guido van Rossum (home page: http://www.python.org/~guido/)
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