summaryrefslogtreecommitdiffstats
path: root/Doc/library/inspect.rst
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/library/inspect.rst')
-rw-r--r--Doc/library/inspect.rst8
1 files changed, 5 insertions, 3 deletions
diff --git a/Doc/library/inspect.rst b/Doc/library/inspect.rst
index 2f09348..32e56e5 100644
--- a/Doc/library/inspect.rst
+++ b/Doc/library/inspect.rst
@@ -598,11 +598,13 @@ any of these then you deserve to have everything break anyway):
member deleted from the class, or a fake `__slots__` attribute
attached to the instance, or any other monkeying with
`__slots__`
-* objects that lie about their type by having `__class__` as a
- descriptor (`getattr_static` traverses the :term:`MRO` of whatever type
- `obj.__class__` returns instead of the real type)
* type objects that lie about their :term:`MRO`
+.. note::
+
+ Classes that override :data:`~object.__mro__` as a property will have this
+ code executed by `getattr_static`.
+
Descriptors are not resolved (for example slot descriptors or
getset descriptors on objects implemented in C). The descriptor
is returned instead of the underlying attribute.