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 <1617976796.54.0.692329409593.issue43753@roundup.psfhosted.org>
In-reply-to
Content
> 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 upgrade_pythoncapi.py on your project using the following PR to update code to use Py_IsNone/Py_IsTrue/Py_IsFalse:
https://github.com/pythoncapi/pythoncapi_compat/pull/8

For example, use "upgrade_pythoncapi.py -o Py_Is directory/" or "upgrade_pythoncapi.py -o Py_Is file.c".
History
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: <1617976796.54.0.692329409593.issue43753@roundup.psfhosted.org>
2021-04-09 13:59:56vstinnerlinkissue43753 messages
2021-04-09 13:59:56vstinnercreate