This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients Michael.Felt, corona10, petdance, ronaldoussoren, shihai1991, vstinner
Date 2020-06-22.09:04:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1592816686.27.0.813508552993.issue40170@roundup.psfhosted.org>
In-reply-to
Content
PyIter_Check() and PySequence_ITEM() macros access directly PyTypeObject members and must be converted to opaque functions:

#define PyIter_Check(obj) \
    (Py_TYPE(obj)->tp_iternext != NULL && \
     Py_TYPE(obj)->tp_iternext != &_PyObject_NextNotImplemented)

#define PySequence_ITEM(o, i)\
    ( Py_TYPE(o)->tp_as_sequence->sq_item(o, i) )
History
Date User Action Args
2020-06-22 09:04:46vstinnersetrecipients: + vstinner, ronaldoussoren, Michael.Felt, corona10, shihai1991, petdance
2020-06-22 09:04:46vstinnersetmessageid: <1592816686.27.0.813508552993.issue40170@roundup.psfhosted.org>
2020-06-22 09:04:46vstinnerlinkissue40170 messages
2020-06-22 09:04:46vstinnercreate