Python "object" as root object

Martin Pool mbp at sourcefrog.net
Wed May 25 10:11:46 BST 2005


On Wed, 2005-05-25 at 01:45 -0500, John A Meinel wrote:
> I think it was python 2.2 or 2.3 where python introduced the 'object'
> superclass. Basically all classes should really inherit from object at
> the lowest level. That is what enables you to use functions like 'super()'

Ah, I had heard of this change but had not realized it was "should
inherit" (or as Fredrik says "may inherit") not "do implicitly inherit
from object", as in Java.  I don't mind adding it if it's useful or
cleaner in any particular case.

-- 
Martin






More information about the bazaar mailing list