Skip to content

DOC: emphasize the need to always call PySequence_Fast#11140

Merged
benjaminp merged 5 commits intopython:masterfrom
mattip:pysequence_fast-pypy
Sep 12, 2019
Merged

DOC: emphasize the need to always call PySequence_Fast#11140
benjaminp merged 5 commits intopython:masterfrom
mattip:pysequence_fast-pypy

Conversation

@mattip
Copy link
Contributor

@mattip mattip commented Dec 13, 2018

PySequence_Fast() should always be used (and the result checked) before any of the other PySequence_Fast* family of functions. As an implementation detail, CPython can circumvent this if PyTuple_CheckExact() passes, but that does not work on PyPy.

xref numpy/numpy#12524

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation in the Doc dir skip issue skip news

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants