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 eric.snow
Recipients eric.snow, kumaraditya, lazka, serhiy.storchaka, vstinner
Date 2022-02-11.16:29:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
In-reply-to <>
On Fri, Feb 11, 2022 at 1:36 AM Christoph Reiter <> wrote:
> Sorry if off topic, but I noticed that CPython doesn't deprecate macros in code, while with gcc/clang it's possible to show compiler warnings for them using some pragma magic:
> [snip]
> Maybe that makes getting rid of them easier in the long run?

That's a good question.  We do have Py_DEPRECATED() (in
Include/pyport.h), which is used for symbols.  I'm not sure anyone has
given much thought to deprecating macros, but it's probably worth
considering.  I recommend that you post something about this to

FWIW, here are other explanations of how to deprecate macros:

Date User Action Args
2022-02-11 16:29:50eric.snowsetrecipients: + eric.snow, vstinner, serhiy.storchaka, lazka, kumaraditya
2022-02-11 16:29:50eric.snowlinkissue46541 messages
2022-02-11 16:29:49eric.snowcreate