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 benjamin.peterson, serhiy.storchaka
Date 2018-07-26.11:28:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1532604480.11.0.56676864532.issue34234@psf.upfronthosting.co.za>
In-reply-to
Content
The proposed PR adds two private helpers

#define _PyAnyInt_Check(op) (PyInt_Check(op) || PyLong_Check(op))
#define _PyAnyInt_CheckExact(op) (PyInt_CheckExact(op) || PyLong_CheckExact(op))

and make it used it in the code. This may help to avoid bugs like issue34229.
History
Date User Action Args
2018-07-26 11:28:00serhiy.storchakasetrecipients: + serhiy.storchaka, benjamin.peterson
2018-07-26 11:28:00serhiy.storchakasetmessageid: <1532604480.11.0.56676864532.issue34234@psf.upfronthosting.co.za>
2018-07-26 11:28:00serhiy.storchakalinkissue34234 messages
2018-07-26 11:28:00serhiy.storchakacreate