while 1 vs while True

Paul Rubin http
Tue Dec 14 13:26:10 CET 2004


Nick Coghlan <ncoghlan at iinet.net.au> writes:
> Until this code:
> 
> .>>> import pdb
> .>>> pdb.True = 0
> .>>> pdb.x = "Darn writeable module dictionaries"
> .>>> from pdb import True
> .>>> True
> 0
> .>>> from pdb import x
> .>>> x
> 'Darn writeable module dictionaries'

If Python really does behave that way, that bug should be fixed immediately.



More information about the Python-list mailing list