Nick Coghlan <ncogh...@gmail.com> added the comment:

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

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue31506>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to