mirror of
https://github.com/python/cpython.git
synced 2025-07-23 03:05:38 +00:00
Issue #18287: PyType_Ready() now checks that tp_name is not NULL.
Original patch by Niklas Koep.
This commit is contained in:
commit
e45b7c09ec
5 changed files with 15 additions and 2 deletions
|
@ -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.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue