diff options
author | Ethan Furman <ethan@stoneleaf.us> | 2013-09-15 01:53:26 (GMT) |
---|---|---|
committer | Ethan Furman <ethan@stoneleaf.us> | 2013-09-15 01:53:26 (GMT) |
commit | 668dede7e91ebe9d0abce48c2c093781ec1888f5 (patch) | |
tree | b12a4f3695bbae85e1d508c4d086bf5858b2ed5d /Doc/library/inspect.rst | |
parent | 2131a4a2fc933132c8f2b1f97b3bbf246cccc669 (diff) | |
download | cpython-668dede7e91ebe9d0abce48c2c093781ec1888f5.zip cpython-668dede7e91ebe9d0abce48c2c093781ec1888f5.tar.gz cpython-668dede7e91ebe9d0abce48c2c093781ec1888f5.tar.bz2 |
Close #18929: inspect.classify_class_attrs will now search the metaclasses (last) to find where an attr was defined.
Diffstat (limited to 'Doc/library/inspect.rst')
-rw-r--r-- | Doc/library/inspect.rst | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Doc/library/inspect.rst b/Doc/library/inspect.rst index 9f784fd..aabf85d 100644 --- a/Doc/library/inspect.rst +++ b/Doc/library/inspect.rst @@ -173,8 +173,9 @@ attributes: .. note:: - :func:`getmembers` does not return metaclass attributes when the argument - is a class (this behavior is inherited from the :func:`dir` function). + :func:`getmembers` will only return metaclass attributes when the + argument is a class and those attributes have been listed in a custom + :meth:`__dir__`. .. function:: getmoduleinfo(path) |