diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2016-10-07 20:25:46 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-10-07 20:25:46 (GMT) |
commit | e45b7c09ece01c9b35a14b89eb64e1324ed321a8 (patch) | |
tree | d64a23ff36d35c76ad881b61ed08e644c0c82dbe /Doc/c-api | |
parent | 242c170f878cc38eb32b26b55f69a9d7cef947a7 (diff) | |
parent | de0574bdabc1183706406b421dea2e3e3c165eb3 (diff) | |
download | cpython-e45b7c09ece01c9b35a14b89eb64e1324ed321a8.zip cpython-e45b7c09ece01c9b35a14b89eb64e1324ed321a8.tar.gz cpython-e45b7c09ece01c9b35a14b89eb64e1324ed321a8.tar.bz2 |
Issue #18287: PyType_Ready() now checks that tp_name is not NULL.
Original patch by Niklas Koep.
Diffstat (limited to 'Doc/c-api')
-rw-r--r-- | Doc/c-api/typeobj.rst | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/c-api/typeobj.rst b/Doc/c-api/typeobj.rst index 2c448a0..25e6c83 100644 --- a/Doc/c-api/typeobj.rst +++ b/Doc/c-api/typeobj.rst @@ -116,7 +116,8 @@ type objects) *must* have the :attr:`ob_size` field. If no dot is present, the entire :c:member:`~PyTypeObject.tp_name` field is made accessible as the :attr:`~definition.__name__` attribute, and the :attr:`__module__` attribute is undefined (unless explicitly set in the dictionary, as explained above). This means your - type will be impossible to pickle. + type will be impossible to pickle. Additionally, it will not be listed in + module documentations created with pydoc. This field is not inherited by subtypes. |