Commit 5f8ed5e7 authored by Yury Selivanov's avatar Yury Selivanov

docs: Better wording for __objclass__ docs. Issue #19281

parent f8f89b84
......@@ -1467,12 +1467,12 @@ class' :attr:`__dict__`.
Called to delete the attribute on an instance *instance* of the owner class.
The :attr:`__objclass__` is interpreted by the :mod:`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,
it 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
attribute for unbound methods that are implemented in C).
The attribute :attr:`__objclass__` is interpreted by the :mod:`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, it 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 attribute for unbound methods that are implemented in C).
.. _descriptor-invocation:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment