if the else short form
Steven D'Aprano
steve at REMOVE-THIS-cybersource.com.au
Sat Oct 2 02:20:39 EDT 2010
On Fri, 01 Oct 2010 22:19:14 -0700, Paul Rubin wrote:
> Steven D'Aprano <steve at REMOVE-THIS-cybersource.com.au> writes:
>> Incorrect. bools *are* ints in Python, beyond any doubt.
>
> Python 2.6.2 (r262:71600, Jun 4 2010, 18:28:58)
> >>> type(3)==type(True)
> False
So? Instances of a subclasses are still instances of the superclass.
--
Steven
More information about the Python-list
mailing list