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/glossary.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/glossary.rst')
-rw-r--r-- | Doc/glossary.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/glossary.rst b/Doc/glossary.rst index b3fd3c9..c9d3eba 100644 --- a/Doc/glossary.rst +++ b/Doc/glossary.rst @@ -347,7 +347,7 @@ Glossary docstring A string literal which appears as the first expression in a class, function or module. While ignored when the suite is executed, it is - recognized by the compiler and put into the :attr:`!__doc__` attribute + recognized by the compiler and put into the :attr:`~definition.__doc__` attribute of the enclosing class, function or module. Since it is available via introspection, it is the canonical place for documentation of the object. @@ -1241,7 +1241,7 @@ Glossary type The type of a Python object determines what kind of object it is; every object has a type. An object's type is accessible as its - :attr:`~instance.__class__` attribute or can be retrieved with + :attr:`~object.__class__` attribute or can be retrieved with ``type(obj)``. type alias |