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 serhiy.storchaka
Recipients larry, ned.deily, njs, serhiy.storchaka, steve.dower
Date 2017-03-30.05:09:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1490850557.38.0.546249132185.issue29943@psf.upfronthosting.co.za>
In-reply-to
Content
My apologies for breaking the world.

The workaround is to undefine PySlice_GetIndicesEx after #include "Python.h".

#if PY_VERSION_HEX < 0x03070000 && defined(PySlice_GetIndicesEx)
#undef PySlice_GetIndicesEx
#endif

But this restores the initial bug.

Other obvious solution -- declare 3.6.0 broken and require upgrading to 3.6.1.

For 3.5.4 we can disable defining the macro when Py_LIMITED_API is not defined. This will restore the initial bug in many extensions. And we need other way to detect if we compile the CPython core or standard extensions for fixing the bug in standard collections. Or expand all uses of PySlice_GetIndicesEx to PySlice_Unpack+PySlice_AdjustIndices (the patch can be generated automatically).
History
Date User Action Args
2017-03-30 05:09:17serhiy.storchakasetrecipients: + serhiy.storchaka, larry, ned.deily, njs, steve.dower
2017-03-30 05:09:17serhiy.storchakasetmessageid: <1490850557.38.0.546249132185.issue29943@psf.upfronthosting.co.za>
2017-03-30 05:09:17serhiy.storchakalinkissue29943 messages
2017-03-30 05:09:17serhiy.storchakacreate