[docs] [issue10893] The docs mark staticmethod as a function

Éric Araujo report at bugs.python.org
Thu Jan 13 23:00:46 CET 2011


Éric Araujo <merwok at netwok.org> added the comment:

Okay, scratch the comment about int, it’s not been accurate for quite a number of years.  Going back to staticmethod, my point still applies: Follow what the docs say.

staticmethod is a type in CPython probably due to the way descriptors work; contextlib.closing is a class for simplicity and efficiency; both of these examples are irrelevant internal details, they’re marked up as functions, so you should treat them as functions.

----------

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


More information about the docs mailing list