diff options
author | Alex Waygood <Alex.Waygood@Gmail.com> | 2024-09-25 19:29:58 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-25 19:29:58 (GMT) |
commit | 0d9d56c4e4246495f506f7fb319548fb105b535b (patch) | |
tree | 09751f896776408a53ab935c4426289ff3d43d59 /Doc/library/inspect.rst | |
parent | 6318ffcba21f8fc155f5558237ab03aa45f0e174 (diff) | |
download | cpython-0d9d56c4e4246495f506f7fb319548fb105b535b.zip cpython-0d9d56c4e4246495f506f7fb319548fb105b535b.tar.gz cpython-0d9d56c4e4246495f506f7fb319548fb105b535b.tar.bz2 |
gh-101100: Add a table of class attributes to the "Custom classes" section of the data model docs (#124480)
Diffstat (limited to 'Doc/library/inspect.rst')
-rw-r--r-- | Doc/library/inspect.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/inspect.rst b/Doc/library/inspect.rst index 57e5cf7..8536718 100644 --- a/Doc/library/inspect.rst +++ b/Doc/library/inspect.rst @@ -545,7 +545,7 @@ attributes (see :ref:`import-mod-attrs` for module attributes): has a :meth:`~object.__get__` method, but not a :meth:`~object.__set__` method or a :meth:`~object.__delete__` method. Beyond that, the set of attributes varies. A :attr:`~definition.__name__` attribute is usually - sensible, and :attr:`!__doc__` often is. + sensible, and :attr:`~definition.__doc__` often is. Methods implemented via descriptors that also pass one of the other tests return ``False`` from the :func:`ismethoddescriptor` test, simply because the |