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 paul.moore, pitrou, steve.dower, tim.golden, vstinner, zach.ware
Date 2018-05-02.09:29:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
According to the following links, it would be possible to implement the Pc_DEPRECATED() macro for Visual Studio:

#ifdef __GNUC__
#define DEPRECATED(func) func __attribute__ ((deprecated))
#elif defined(_MSC_VER)
#define DEPRECATED(func) __declspec(deprecated) func
#pragma message("WARNING: You need to implement DEPRECATED for this compiler")
#define DEPRECATED(func) func

Moreover, is Py_DEPRECATED() defined on clang which also supports the deprecated function attribute?

Current Include/pyport.h code:

#if defined(__GNUC__) \
    && ((__GNUC__ >= 4) || (__GNUC__ == 3) && (__GNUC_MINOR__ >= 1))
#define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
Date User Action Args
2018-05-02 09:29:49vstinnersetrecipients: + vstinner, paul.moore, pitrou, tim.golden, zach.ware, steve.dower
2018-05-02 09:29:49vstinnersetmessageid: <>
2018-05-02 09:29:49vstinnerlinkissue33407 messages
2018-05-02 09:29:49vstinnercreate