From de0574bdabc1183706406b421dea2e3e3c165eb3 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Fri, 7 Oct 2016 23:24:35 +0300 Subject: Issue #18287: PyType_Ready() now checks that tp_name is not NULL. Original patch by Niklas Koep. --- Doc/c-api/typeobj.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Doc/c-api') diff --git a/Doc/c-api/typeobj.rst b/Doc/c-api/typeobj.rst index 2c448a0211..25e6c83153 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. -- cgit v1.2.1