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.
PySequence_Fast should be removed from the Limited API
All macros used with PySequence_Fast are valid for use in the context of the Limited API
In either case the documentation should need to be clarified.
The only situation where no changes would result is if:
PySequence_Fast is part of the Limited API, but must be treated the same as a regular PySequence object
Since only PySequence_Size and other variants can be used in the context of the Limited API
This is actually also still confusing and should be mentioned clearly.
HaoZekemannequin
changed the title
RFC: Clarify Limited API macros for PySequence_Fast
RFC: Clarify usage of macros for PySequence_Fast within the Limited C API
Apr 8, 2022
HaoZekemannequin
changed the title
RFC: Clarify Limited API macros for PySequence_Fast
RFC: Clarify usage of macros for PySequence_Fast within the Limited C API
Apr 8, 2022
HaoZeke mannequin commentedApr 8, 2022
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:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: