[issue40704] PyIter_Check fails when compiling in the Limited API

Maxwell Bernstein report at bugs.python.org
Wed May 20 18:09:55 EDT 2020


New submission from Maxwell Bernstein <tekk.nolagi at gmail.com>:

PyIter_Check is itself marked as available in the Limited API but:

a) it's a macro, and
b) it pokes directly at tp_iternext

This means that it's functionally impossible to use PyIter_Check
when working with the Limited API.

----------
components: C API
messages: 369479
nosy: tekknolagi
priority: normal
severity: normal
status: open
title: PyIter_Check fails when compiling in the Limited API
versions: Python 3.6, Python 3.7

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40704>
_______________________________________


More information about the Python-bugs-list mailing list