What is the semantics meaning of 'object'?

Steven D'Aprano steve+comp.lang.python at pearwood.info
Sun Jun 23 12:35:00 EDT 2013


On Sun, 23 Jun 2013 10:15:38 -0600, Ian Kelly wrote:

> If you're worried about efficiency, you can also explicitly name the
> superclass in order to call the method directly, like:
> 
>         A.__init__(self, arg)

Please don't. This is false economy. The time you save will be trivial, 
the overhead of inheritance is not going to be the bottleneck in your 
code, and by ignoring super, you only accomplish one thing:

- if you use your class in multiple inheritance, it will be buggy.



-- 
Steven



More information about the Python-list mailing list