[Python-Dev] introduction of attribute(deprecated) ? (original) (raw)

Stéphane Wirtel stephane at wirtel.be
Sun Mar 24 18:44:19 EDT 2019


Thanks Victor, I have updated my PR with the Py_DEPRECATED macro.

Le 24/03/19 à 23:07, Victor Stinner a écrit :

Le dim. 24 mars 2019 à 20:56, Stéphane Wirtel <stephane at wirtel.be> a écrit :

So my question is, can we use/add attribute(deprecated) in our "development" kit? There is already PyDEPRECATED(VERSIONUNUSED) macro which uses attribute((deprecated)) on GCC >= 3.1. You can find the doc of a few macros in https://docs.python.org/dev/c-api/intro.html#useful-macros but this macro isn't documented there. pyport.h and pymacro.h contain most of the "macros". Victor



More information about the Python-Dev mailing list