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

Alex Martelli aleax at aleax.it
Thu Apr 11 04:39:44 EDT 2002


Brad Clements wrote:

> Could someone explain this to me.
> 
> Lots of code does  type(x) in [InstanceType]

I'll explain to you why lots of code does typetesting if you explain to me 
lemmings' alleged propensity for hurling themselves off a cliff.  You go 
first -- I suspect I can then just copy and paste your explanation right 
back to you:-).


Alex




More information about the Python-list mailing list