diff options
author | Victor Stinner <vstinner@python.org> | 2022-04-21 14:52:54 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-21 14:52:54 (GMT) |
commit | 2a5f171759a31597032cfe52646929e6f8727243 (patch) | |
tree | 0ef894868fc9e6dec266dd9379c52610c60405bc /Objects/clinic | |
parent | 1b184c84082530f35c593cb7728752e258371c30 (diff) | |
download | cpython-2a5f171759a31597032cfe52646929e6f8727243.zip cpython-2a5f171759a31597032cfe52646929e6f8727243.tar.gz cpython-2a5f171759a31597032cfe52646929e6f8727243.tar.bz2 |
gh-89653: PEP 670: Convert tuple macros to functions (#91786)
Convert macros to static inline functions:
* PyTuple_GET_SIZE()
* PyTuple_SET_ITEM()
* PyList_GET_SIZE()
* PyList_SET_ITEM()
Add a macro converting arguments to PyTupleObject*, PyListObject* or
PyObject* to prevent emitting new compiler warnings.
According to PEP 670, PyTuple_GET_ITEM() and PyList_GET_ITEM() are
left as macros.
Diffstat (limited to 'Objects/clinic')
0 files changed, 0 insertions, 0 deletions