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 Carl.Friedrich.Bolz, Mark.Shannon, erlendaasland, mark.dickinson, pablogsal, rhettinger, shihai1991, tim.peters, vstinner
Date 2021-04-09.13:59:56
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
> I tried applying this API on an extension, and I found the code to be slightly less readable for the "is not" cases.

FYI you can try on your project using the following PR to update code to use Py_IsNone/Py_IsTrue/Py_IsFalse:

For example, use " -o Py_Is directory/" or " -o Py_Is file.c".
Date User Action Args
2021-04-09 13:59:56vstinnersetrecipients: + vstinner, tim.peters, rhettinger, mark.dickinson, Carl.Friedrich.Bolz, Mark.Shannon, pablogsal, shihai1991, erlendaasland
2021-04-09 13:59:56vstinnersetmessageid: <>
2021-04-09 13:59:56vstinnerlinkissue43753 messages
2021-04-09 13:59:56vstinnercreate