if the else short form
Steven D'Aprano
steve at REMOVE-THIS-cybersource.com.au
Sat Oct 2 02:20:39 EDT 2010
More information about the Python-list mailing list
Sat Oct 2 02:20:39 EDT 2010
- Previous message (by thread): if the else short form
- Next message (by thread): if the else short form
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message (by thread): if the else short form
- Next message (by thread): if the else short form
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list