Issue #18287: PyType_Ready() now checks that tp_name is not NULL.

Original patch by Niklas Koep.
This commit is contained in:
Serhiy Storchaka 2016-10-07 23:25:46 +03:00
commit e45b7c09ec
5 changed files with 15 additions and 2 deletions

View file

@ -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.