Author vstinner
Recipients vstinner
Date 2018-11-10.01:37:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1541813853.84.0.788709270274.issue35206@psf.upfronthosting.co.za>
In-reply-to
Content
Add a new experimental "_Py_CAPI2" API: opt-in which doesn't leak implementation details and replace macros with function calls.

Attached PR modified PyTuple_GET_ITEM() if _Py_CAPI2 is defined.

With this API, PyTuple_GET_ITEM() macro becomes a function call and
the implementation uses assertions to check if the first argument is
a tuple and that the index is valid. It should help to investigate
bugs when Python is compiled in debug mode.

This issue implements the idea that I proposed on python-dev:
https://mail.python.org/pipermail/python-dev/2018-November/155702.html
History
Date User Action Args
2018-11-10 01:37:33vstinnersetrecipients: + vstinner
2018-11-10 01:37:33vstinnersetmessageid: <1541813853.84.0.788709270274.issue35206@psf.upfronthosting.co.za>
2018-11-10 01:37:33vstinnerlinkissue35206 messages
2018-11-10 01:37:32vstinnercreate