[issue10438] list an example for calling static methods from WITHIN classes

R. David Murray report at bugs.python.org
Tue Jul 11 13:44:29 EDT 2017


R. David Murray added the comment:

Given a choice between catering for Python programmers and catering for Java/C++ programmers, the Python docs obviously ought to chose to cater to Python programmers.  To a python programmer, calling C.f() is intuitive.

I would myself definitely *not* encourage the __class__.f() idiom.

Maybe we should just drop the reference to Java and C++ static methods.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10438>
_______________________________________


More information about the Python-bugs-list mailing list