bool behavior in Python 3000?

Bruno Desthuilliers bruno.42.desthuilliers at wtf.websiteburo.oops.com
Fri Jul 13 06:28:31 EDT 2007


Steven D'Aprano a écrit :
(snip)
> It makes more sense to explicitly cast bools to ints 

s/cast bools to ints/build ints from bools/

AFAICT, there's no such thing as typecast in Python.




More information about the Python-list mailing list