bool behavior in Python 3000?

Steve Holden steve at holdenweb.com
Wed Jul 11 21:36:18 EDT 2007


Terry Reedy wrote:
> "Ed Leafe" <ed at leafe.com> wrote in message 
> news:C5AEB4C0-273B-411F-B14E-2B45E0881549 at leafe.com...
> | I think that the assignability to the names 'True' and 'False' is
> | incorrect, or at the very least subject to all sorts of odd results.
> 
> It is necessary for 2.x to not break older code.  I believe they will 
> somehow be reserved, like None, in 3.0.
> 
But of course None was assignable until (?) 2.3 and then became formally 
constant, so it was no longer possible to assign to it or even shadow it 
in a local namespace. So much for that kind of backward compatibility!

regards
  Steve
-- 
Steve Holden        +1 571 484 6266   +1 800 494 3119
Holden Web LLC/Ltd           http://www.holdenweb.com
Skype: holdenweb      http://del.icio.us/steve.holden
--------------- Asciimercial ------------------
Get on the web: Blog, lens and tag the Internet
Many services currently offer free registration
----------- Thank You for Reading -------------




More information about the Python-list mailing list