diff options
author | Georg Brandl <georg@python.org> | 2008-01-06 15:48:20 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2008-01-06 15:48:20 (GMT) |
commit | 91a4808aa8a0d5878a2e2d6cfa56fda7afb53233 (patch) | |
tree | cb35d9c5d2a4b1c6a83bbef6a0644e6e9c24b4fe /Doc/library/inspect.rst | |
parent | db210dfba28524935a61959c2edf96496d33bf19 (diff) | |
download | cpython-91a4808aa8a0d5878a2e2d6cfa56fda7afb53233.zip cpython-91a4808aa8a0d5878a2e2d6cfa56fda7afb53233.tar.gz cpython-91a4808aa8a0d5878a2e2d6cfa56fda7afb53233.tar.bz2 |
#759525: document that dir() doesn't return metaclass attrs when given a class as arg.
Diffstat (limited to 'Doc/library/inspect.rst')
-rw-r--r-- | Doc/library/inspect.rst | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Doc/library/inspect.rst b/Doc/library/inspect.rst index fbc9d04..c1f0f00 100644 --- a/Doc/library/inspect.rst +++ b/Doc/library/inspect.rst @@ -195,6 +195,11 @@ Note: name. If the optional *predicate* argument is supplied, only members for which the predicate returns a true value are included. + .. note:: + + :func:`getmembers` does not return metaclass attributes when the argument + is a class (this behavior is inherited from the :func:`dir` function). + .. function:: getmoduleinfo(path) |