[Tutor] it is ok that object.__init__ gets called multiple times?

Kent Johnson kent37 at tds.net
Wed Jun 11 23:28:31 CEST 2008


On Wed, Jun 11, 2008 at 4:05 PM, claxo <clazzt at arnet.com.ar> wrote:
> In the following code the __init__ for C would end calling two times object.__init__ .
> Is this ok or I calling for trouble ?
> To make explicit some context:
>    object is the std python object
>    super is not suposed to be used in any subclass

Why not? This seems to me the problem super is designed to solve.

OTOH why are you calling object.__init__() ? I don't think that is needed...

Kent


More information about the Tutor mailing list