[issue19281] add __objclass__ to the docs

Nick Coghlan report at bugs.python.org
Thu Oct 24 13:08:36 CEST 2013


Nick Coghlan added the comment:

Changing the order a bit, perhaps something like this in the data model section:

__objclass__: Interpreted by the inspect module as specifying the class where this object was defined (setting this appropriately can assist in runtime introspection of dynamic class attributes). For callables, may indicate that an instance of the given type (or a subclass) is expected or required as the first positional argument (for example, CPython sets this for unbound methods that are implemented in C rather than being normal Python functions).

Perhaps with a cross-reference from the classification function in inspect?

----------

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


More information about the Python-bugs-list mailing list