type() new style class instance says "class", not "ObjectType"

Aahz aahz at pythoncraft.com
Fri Apr 12 20:03:09 EDT 2002


In article <a97l29$hnv$0 at 216.39.172.122>, Bengt Richter <bokr at oz.net> wrote:
>
>ISTM what matters most of the time is how you can use it, not
>what its exact parentage is. E.g., people (ab)use type(x) to
>try to check if an argument to a function should be used one
>way or another way. I'm wondering if we're heading towards
>a hascapability(thing, cap) kind of general query, as a useful
>standard set of capabilities objects can be endowed with evolves?

http://www.python.org/peps/pep-0246.html

Needs much work before BDFL pronouncement.
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

What if there were no rhetorical questions?



More information about the Python-list mailing list