Python "object" as root object

John A Meinel john at arbash-meinel.com
Wed May 25 16:03:49 BST 2005


Martin Pool wrote:

>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.
>
>
>
Since you seem to be okay adding it, I will submit a patch. :)

John
=:->

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 253 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20050525/649c6036/attachment.pgp 


More information about the bazaar mailing list