isinstance(False, int)

Stephen Hansen apt.shansen at gmail.com
Fri Mar 5 19:06:15 CET 2010


On Fri, Mar 5, 2010 at 9:14 AM, mk <mrkafk at gmail.com> wrote:

> >>> isinstance(False, int)
> True
> >>>
> >>> isinstance(True, int)
> True
>
> Huh?
>
> >>>
> >>> issubclass(bool, int)
> True
>
> Huh?!
>

Huh, what?

http://www.python.org/dev/peps/pep-0285/

--S
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20100305/11b9a743/attachment.html>


More information about the Python-list mailing list