Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=Nonecreated_at=<Date2022-04-08.15:14:46.053>labels= ['expert-C-API', 'docs']
title='RFC: Clarify usage of macros for PySequence_Fast within the Limited C API'updated_at=<Date2022-04-08.15:19:49.541>user='https://github.com/HaoZeke'
The current documentation_ of the Python-C API mentions that PySequence_Fast is part of the limited API. However, this may be a typo as all the functions interacting with a PySequence_Fast object are macros, e.g. PySequence_Fast_GET_SIZE, PySequence_Fast_GET_ITEM etc.
If this is indeed a documentation bug I'm happy to open a PR to fix this once consensus is reached.
changed the title [-]RFC: Clarify Limited API macros for PySequence_Fast[/-][+]RFC: Clarify usage of macros for PySequence_Fast within the Limited C API[/+]on Apr 8, 2022
changed the title [-]RFC: Clarify Limited API macros for PySequence_Fast[/-][+]RFC: Clarify usage of macros for PySequence_Fast within the Limited C API[/+]on Apr 8, 2022
Activity
HaoZeke commented on Apr 8, 2022
The current documentation_ of the Python-C API mentions that PySequence_Fast is part of the limited API. However, this may be a typo as all the functions interacting with a PySequence_Fast object are macros, e.g. PySequence_Fast_GET_SIZE, PySequence_Fast_GET_ITEM etc.
If this is indeed a documentation bug I'm happy to open a PR to fix this once consensus is reached.
.. _current documentation : https://docs.python.org/3/c-api/stable.html#contents-of-limited-api
HaoZeke commented on Apr 8, 2022
Perhaps to be clear, there are two possibilities:
In either case the documentation should need to be clarified.
The only situation where no changes would result is if:
This is actually also still confusing and should be mentioned clearly.
pythongh-91417: Remove PySequence_Fast() from the limited C API
pythongh-91417: Remove PySequence_Fast() from the limited C API
vstinner commented on Jan 29, 2025
I created PR gh-129398 to remove the function PySequence_Fast() from the limited C API.
gh-91417: Remove PySequence_Fast() from the limited C API (#129398)
vstinner commented on Feb 2, 2025
The function was removed from the limited C API by change 2ad069d.
pythongh-91417: Remove PySequence_Fast() from the limited C API (pyth…