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 philthompson10
Recipients philthompson10
Date 2019-07-13.17:53:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1563040436.19.0.276806879722.issue37588@roundup.psfhosted.org>
In-reply-to
Content
I have a number of static PyTypeObject declarations. In order to avoid compiler warnings about missing field initialisers I always provide explicit 0 values for unused fields (protected by #if PY_HEX_VERSION >= ...). However with v3.8b2 this triggers new warnings from Py_DEPRECATED because of the initialiser for tp_print.

I would like some way of locally suppressing Py_DEPRECATED. The attached trivial patch would do this by allowing me to define a null Py_DEPRECATED before including Python.h.
History
Date User Action Args
2019-07-13 17:53:56philthompson10setrecipients: + philthompson10
2019-07-13 17:53:56philthompson10setmessageid: <1563040436.19.0.276806879722.issue37588@roundup.psfhosted.org>
2019-07-13 17:53:56philthompson10linkissue37588 messages
2019-07-13 17:53:55philthompson10create