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 ncoghlan
Recipients CuriousLearner, ncoghlan, ppt000, serhiy.storchaka, xtreak
Date 2019-02-19.12:53:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1550580821.24.0.0406159142577.issue31506@roundup.psfhosted.org>
In-reply-to
Content
Paolo: it still won't be completely clear, since there's still the subtle issue that __new__ is a static method rather than a class method, so the correct calls up to the base class are respectively:

    super(Singleton, cls).__new__(cls) # Static method, cls needs to be passed explicitly

    super(Singleton, self).__init__() # Bound method, self filled in automatically
History
Date User Action Args
2019-02-19 12:53:41ncoghlansetrecipients: + ncoghlan, serhiy.storchaka, CuriousLearner, xtreak, ppt000
2019-02-19 12:53:41ncoghlansetmessageid: <1550580821.24.0.0406159142577.issue31506@roundup.psfhosted.org>
2019-02-19 12:53:41ncoghlanlinkissue31506 messages
2019-02-19 12:53:41ncoghlancreate