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

R. David Murray report at bugs.python.org
Tue Jul 11 14:36:42 EDT 2017


R. David Murray added the comment:

I'm not sure there's a "best practice" choice between the two calling forms that are documented.  Although obviously when you don't have an instance you can't use the instance calling form.  I think it is *common* practice to use the instance form when you can, but I'm not sure it is either superior or inferior to using the class form.  It partly depends on how you have structured your code and why you are using static methods in the first place.

----------

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


More information about the Python-bugs-list mailing list