2.2 features
Skip Montanaro
skip at pobox.com
Tue Jul 31 13:51:41 EDT 2001
Skip> How about 'x in type' as a shorthand for 'issubclass(x, type)' if
Skip> x is a type or class instead of an instance?
Guido> No, that would be ambiguous. A subclass is not an instance. A
Guido> class or type represents a set of instances, so 'in' is justified
Guido> in a sense.
I guess I'm confused, but if isinstance(x, type) is true isn't
issubclass(x.__class__, type) also true?
Skip
More information about the Python-list
mailing list