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 Arfrever
Recipients Arfrever, eryksun, ezio.melotti, pitrou, serhiy.storchaka, vstinner
Date 2014-09-29.20:04:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1412021093.54.0.574395557269.issue19569@psf.upfronthosting.co.za>
In-reply-to
Content
There is already Py_DEPRECATED in Include/pyport.h:


#if defined(__GNUC__) && ((__GNUC__ >= 4) || \
              (__GNUC__ == 3) && (__GNUC_MINOR__ >= 1))
#define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
#else
#define Py_DEPRECATED(VERSION_UNUSED)
#endif


You can add this before '#else':
#elif defined(_MSC_VER) && _MSC_VER >= 1300
#define Py_DEPRECATED(VERSION_UNUSED) __declspec(deprecated)


Py_DEPRECATED is not used since Python 3.0 (it is still used in 2.7).
History
Date User Action Args
2014-09-29 20:04:53Arfreversetrecipients: + Arfrever, pitrou, vstinner, ezio.melotti, serhiy.storchaka, eryksun
2014-09-29 20:04:53Arfreversetmessageid: <1412021093.54.0.574395557269.issue19569@psf.upfronthosting.co.za>
2014-09-29 20:04:53Arfreverlinkissue19569 messages
2014-09-29 20:04:53Arfrevercreate