Skip to content

Conversation

@vstinner
Copy link
Member

@vstinner vstinner commented Jun 22, 2020

Convert PyTuple and PyList macros to static inline functions:

  • PyTuple_GET_SIZE(), PyList_GET_SIZE()
  • PyTuple_GET_ITEM(), PyList_GET_ITEM()
  • PyTuple_SET_ITEM(), PyList_SET_ITEM()

It is no longer possible to use "&PyTuple_GET_ITEM()" or "&PyList_GET_ITEM()".

https://bugs.python.org/issue41078

Convert PyTuple and PyList macros to static inline functions:

* PyTuple_GET_SIZE(), PyList_GET_SIZE()
* PyTuple_GET_ITEM(), PyList_GET_ITEM()
* PyTuple_SET_ITEM(), PyList_SET_ITEM()

It is no longer possible to use "&PyTuple_GET_ITEM()" or "&PyList_GET_ITEM()".
@vstinner vstinner marked this pull request as draft June 22, 2020 16:32
@vstinner vstinner changed the title bpo-41078: Convert PyTuple_GET_ITEM() macro to static inline function [WIP] bpo-41078: Convert PyTuple_GET_ITEM() macro to static inline function Jun 22, 2020
@vstinner
Copy link
Member Author

I convert the PR to a draft since it breaks Cython: https://bugs.python.org/issue41078#msg372100

@vstinner vstinner closed this Sep 21, 2021
@vstinner vstinner deleted the opaque_tuple_getitem branch September 21, 2021 22:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants