why objects of old style classes are instances of 'object'

AlFire spamgrinder.trylater at gmail.com
Thu Apr 17 16:52:15 CEST 2008


Hi,

Q: from the subject, why objects of old style classes are instances of 
'object'?

 >>> class a():pass
 >>> A=a()
 >>> isinstance(A,object)

True



I would expect False


Thx,
Andy



More information about the Python-list mailing list