Message335943
| 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:41 | ncoghlan | set | recipients: + ncoghlan, serhiy.storchaka, CuriousLearner, xtreak, ppt000 |
| 2019-02-19 12:53:41 | ncoghlan | set | messageid: <1550580821.24.0.0406159142577.issue31506@roundup.psfhosted.org> |
| 2019-02-19 12:53:41 | ncoghlan | link | issue31506 messages |
| 2019-02-19 12:53:41 | ncoghlan | create | |