Changing truth

"Martin v. Löwis" martin at v.loewis.de
Thu Jan 16 13:13:11 EST 2003


Christian Tismer wrote:
> Maybe a compromize would be to capture
> assignments to True and False in a way
> that they issue a warning if the assigned
> value is not coercable to 1 resp. 0?

Those checks are compile-time warnings, so it is difficult to implement 
them at interpretation time. Also, there are cases were True/False are 
used as parameter names.

Regards,
Martin







More information about the Python-list mailing list