summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorZackery Spytz <zspytz@gmail.com>2019-05-28 15:16:33 (GMT)
committerVictor Stinner <vstinner@redhat.com>2019-05-28 15:16:33 (GMT)
commit3c8724fc60163f4f3c3b0d531c84cc7b36783f82 (patch)
treebb195253b921a259f0a6e02ffc80f4eb6ad16738 /Doc
parent17a5588740b3d126d546ad1a13bdac4e028e6d50 (diff)
downloadcpython-3c8724fc60163f4f3c3b0d531c84cc7b36783f82.zip
cpython-3c8724fc60163f4f3c3b0d531c84cc7b36783f82.tar.gz
cpython-3c8724fc60163f4f3c3b0d531c84cc7b36783f82.tar.bz2
bpo-33407: Implement Py_DEPRECATED() on MSVC (GH-8980)
Diffstat (limited to 'Doc')
-rw-r--r--Doc/c-api/intro.rst12
-rw-r--r--Doc/whatsnew/3.8.rst9
2 files changed, 21 insertions, 0 deletions
diff --git a/Doc/c-api/intro.rst b/Doc/c-api/intro.rst
index 672936a..a1c8d34 100644
--- a/Doc/c-api/intro.rst
+++ b/Doc/c-api/intro.rst
@@ -160,6 +160,18 @@ complete listing.
.. versionadded:: 3.4
+.. c:macro:: Py_DEPRECATED(version)
+
+ Use this for deprecated declarations. The macro must be placed before the
+ symbol name.
+
+ Example::
+
+ Py_DEPRECATED(3.8) PyAPI_FUNC(int) Py_OldFunction(void);
+
+ .. versionchanged:: 3.8
+ MSVC support was added.
+
.. _api-objects:
diff --git a/Doc/whatsnew/3.8.rst b/Doc/whatsnew/3.8.rst
index 547e795..b32cec1 100644
--- a/Doc/whatsnew/3.8.rst
+++ b/Doc/whatsnew/3.8.rst
@@ -1240,6 +1240,15 @@ Changes in the C API
(Contributed by Eddie Elizondo in :issue:`35810`.)
+* The :c:macro:`Py_DEPRECATED()` macro has been implemented for MSVC.
+ The macro now must be placed before the symbol name.
+
+ Example::
+
+ Py_DEPRECATED(3.8) PyAPI_FUNC(int) Py_OldFunction(void);
+
+ (Contributed by Zackery Spytz in :issue:`33407`.)
+
CPython bytecode changes
------------------------