Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0fceaf4 commit d3f918cCopy full SHA for d3f918c
1 file changed
Doc/reference/datamodel.rst
@@ -1467,6 +1467,14 @@ class' :attr:`__dict__`.
1467
Called to delete the attribute on an instance *instance* of the owner class.
1468
1469
1470
+The :attr:`__objclass__` is interpreted by the :mod:`inspect` module as
1471
+specifying the class where this object was defined (setting this appropriately
1472
+can assist in runtime introspection of dynamic class attributes). For callables,
1473
+it may indicate that an instance of the given type (or a subclass) is expected
1474
+or required as the first positional argument (for example, CPython sets this
1475
+attribute for unbound methods that are implemented in C).
1476
+
1477
1478
.. _descriptor-invocation:
1479
1480
Invoking Descriptors
0 commit comments