2.2 features

Skip Montanaro skip at pobox.com
Tue Jul 31 10:21:40 EDT 2001


    Guido> I love it.  'x in type' as a shorthand for isinstance(x, type).
    Guido> Checked into CVS!

How about 'x in type' as a shorthand for 'issubclass(x, type)' if x is a
type or class instead of an instance?

Skip




More information about the Python-list mailing list