2.2 features
Walter Dörwald
walter at livinglogic.de
Fri Aug 3 09:24:06 EDT 2001
I wrote:
> Guido van Rossum wrote:
>
> [...]
>> To remember isinstance() and isclass(), try to make a sentence out of
>> it, like isinstance(x, y) <==> x is instance [of] y.
>
>
> This would even be clearer, if isinstance and issubclass would be
> methods of object and type respectively, i.e.
> x.isinstance(y) or x.isinstanceof(y) or x.isa(y)
> and
> c1.issubclass(c2)
And maybe the builtin functions hasattr, getattr, delattr, setattr
should be methods of the class object too?
--
Walter Dörwald · LivingLogic AG, Bayreuth/Germany · www.livinglogic.de
More information about the Python-list
mailing list