isinstance(False, int)
Stephen Hansen
apt.shansen at gmail.com
Fri Mar 5 13:06:15 EST 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