Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] bpo-41078: Convert PyTuple_GET_ITEM() macro to static inline function #21059

Closed
wants to merge 1 commit into from
Closed

[WIP] bpo-41078: Convert PyTuple_GET_ITEM() macro to static inline function #21059

wants to merge 1 commit into from

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.

None yet

3 participants