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 corona10, nascheme, serhiy.storchaka, shihai1991, steve.dower, vstinner
Date 2020-02-13.15:58:01
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <[email protected]>
In-reply-to
Content
> Hi, guys. Is there value in adding `PyNone_Check` macro?

"obj == Py_None" is a very common pattern.

You have check how it is done in HPy: https://github.com/pyhandle/hpy

See also bpo-39511: "[subinterpreters] Per-interpreter singletons (None, True, False, etc.)".
History
Date User Action Args
2020-02-13 15:58:01vstinnersetrecipients: + vstinner, nascheme, serhiy.storchaka, steve.dower, corona10, shihai1991
2020-02-13 15:58:01vstinnersetmessageid: <[email protected]>
2020-02-13 15:58:01vstinnerlinkissue39573 messages
2020-02-13 15:58:01vstinnercreate