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.12:50:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
> I'd also prefer a Py_IsNotNone() because it's more explicit than !Py_IsNone()

I would prefer keep the C API small. I don't think that we need to duplicate all functions testing for something. We provide PyTuple_Check(obj) but we don't provide PyTuple_NotCheck(obj) for example.

IMO !Py_IsNone(obj) makes perfectly sense in Python.

Also, "x == Py_None" is more common than "x != Py_None".
Date User Action Args
2021-04-09 12:50:46vstinnersetrecipients: + vstinner, tim.peters, rhettinger, mark.dickinson, Carl.Friedrich.Bolz, Mark.Shannon, pablogsal, shihai1991, erlendaasland
2021-04-09 12:50:46vstinnersetmessageid: <>
2021-04-09 12:50:46vstinnerlinkissue43753 messages
2021-04-09 12:50:46vstinnercreate