mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
bpo-39573: Use the Py_TYPE() macro (GH-21433)
Replace obj->ob_type with Py_TYPE(obj).
This commit is contained in:
parent
d878349bac
commit
8182cc2e68
7 changed files with 12 additions and 12 deletions
|
@ -33,7 +33,7 @@ or
|
|||
|
||||
if the refcount changed.
|
||||
|
||||
typename is object->ob_type->tp_name, extracted from the second PYTHONDUMPREFS
|
||||
typename is Py_TYPE(object)->tp_name, extracted from the second PYTHONDUMPREFS
|
||||
output block.
|
||||
|
||||
repr is repr(object), extracted from the first PYTHONDUMPREFS output block.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue