Skip to content

gh-117518: Add PyTuple_GetItemRef() function #117519

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

Closed
wants to merge 1 commit into from

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Apr 3, 2024

Replace Py_NewRef(PyTuple_GET_ITEM(tuple, pos)) with PyTuple_GetItemRef(tuple, pos).


📚 Documentation preview 📚: https://cpython-previews--117519.org.readthedocs.build/

Replace Py_NewRef(PyTuple_GET_ITEM(tuple, pos)) with
PyTuple_GetItemRef(tuple, pos).
@vstinner
Copy link
Member Author

The consensus is more towards documentation, rather than adding a new function.

@vstinner vstinner closed this Apr 19, 2024
@vstinner vstinner deleted the tuple_getitemref branch April 19, 2024 08:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant