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/email.contentmanager.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/email.contentmanager.rst')
-rw-r--r-- | Doc/library/email.contentmanager.rst | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Doc/library/email.contentmanager.rst b/Doc/library/email.contentmanager.rst index 34121f8..a86e227 100644 --- a/Doc/library/email.contentmanager.rst +++ b/Doc/library/email.contentmanager.rst @@ -58,11 +58,12 @@ * the type itself (``typ``) * the type's fully qualified name (``typ.__module__ + '.' + typ.__qualname__``). - * the type's qualname (``typ.__qualname__``) - * the type's name (``typ.__name__``). + * the type's :attr:`qualname <type.__qualname__>` (``typ.__qualname__``) + * the type's :attr:`name <type.__name__>` (``typ.__name__``). If none of the above match, repeat all of the checks above for each of - the types in the :term:`MRO` (``typ.__mro__``). Finally, if no other key + the types in the :term:`MRO` (:attr:`typ.__mro__ <type.__mro__>`). + Finally, if no other key yields a handler, check for a handler for the key ``None``. If there is no handler for ``None``, raise a :exc:`KeyError` for the fully qualified name of the type. |