Skip Montanaro writes: > Hmmm... Those code blocks would only be executed on older versions of the > interpreter. Is there some way to use that knowledge to finesse the > problem? It would be a real hack, but if the compiler recognized precisely > the above construct (or at least assignment in an except block guarded by > NameError), it could shut up about the assignment. Another possibility would be that in a module containing *no* assignments to True and False, references could be converted to special byte codes. Not quite the same, but allows for optimizations at any rate. -Fred -- Fred L. Drake, Jr. <fdrake at acm.org> PythonLabs at Zope Corporation
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