[Python-Dev] Code Generation Idea Was: Bytecode idea

Greg Ewing greg@cosc.canterbury.ac.nz
Thu, 27 Feb 2003 12:22:06 +1300 (NZDT)


> there's currently lots of code out there
> that was recently modified to read
> 
>   try:
>     True
>   except NameError:
>     True = 1
>     False = 0

Maybe assignment to them could be allowed provided the
value being assigned is == to their official value?

(The actual assignment needn't be done, just suppression
of any exception.)

Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury,	   | A citizen of NewZealandCorp, a	  |
Christchurch, New Zealand	   | wholly-owned subsidiary of USA Inc.  |
greg@cosc.canterbury.ac.nz	   +--------------------------------------+