This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author monnerat
Recipients monnerat
Date 2019-09-14.13:35:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1568468127.45.0.322825823369.issue38171@roundup.psfhosted.org>
In-reply-to
Content
Running the attached program outputs:
--------
top.__init__(<__main__.top object at 0x7fc1dea24048>,) called
i1.__init__(<__main__.top object at 0x7fc1dea24048>, 'arg from top') called
i2.__init__(<__main__.top object at 0x7fc1dea24048>, 'arg from i1') called
base.__init__(<__main__.top object at 0x7fc1dea24048>, 'arg from i2') called
base.__init__ returns None
i2.__init__ returns None
i1.__init__ returns None
top.__init__ returns None
--------

i2.__init__() argument is wrong: since it is is not a parent class of i1, it should be "arg from top".

I can understand i2.__init__() is called after i1.__init__() and before base.__init__() but arguments given to super(i1, self).__init__() should not be substituted for calling i2.__init__().
History
Date User Action Args
2019-09-14 13:35:27monneratsetrecipients: + monnerat
2019-09-14 13:35:27monneratsetmessageid: <1568468127.45.0.322825823369.issue38171@roundup.psfhosted.org>
2019-09-14 13:35:27monneratlinkissue38171 messages
2019-09-14 13:35:27monneratcreate