Re:Hidden features of Python
by mccutchen on Tuesday July 13, 2010 @11:44PM
(#1513531)
This is just a side-effect of bool being a subclass of int and True and False having the values 1 and 0, respectively. It might seem weird or surprising, but it's not a problem with Python's type system.
[ Parent
| on HN ]
There are no comments on this comment yet.