summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorLysandros Nikolaou <lisandrosnik@gmail.com>2020-06-22 00:07:39 (GMT)
committerGitHub <noreply@github.com>2020-06-22 00:07:39 (GMT)
commit8ae5e8ec8147e6434454e66953c25848b848711a (patch)
treeb94e1f849fbff0b814a501bb73f9c7d6901b4dec /Include
parent5b1a311512fb74d47a7beb223b93e5f28f3f98ab (diff)
downloadcpython-8ae5e8ec8147e6434454e66953c25848b848711a.zip
cpython-8ae5e8ec8147e6434454e66953c25848b848711a.tar.gz
cpython-8ae5e8ec8147e6434454e66953c25848b848711a.tar.bz2
[3.9] bpo-40939: Deprecate PyNode_Compile (GH-21036)
Automerge-Triggered-By: @pablogsal
Diffstat (limited to 'Include')
-rw-r--r--Include/compile.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Include/compile.h b/Include/compile.h
index 12417ce..98adee3 100644
--- a/Include/compile.h
+++ b/Include/compile.h
@@ -9,6 +9,9 @@ extern "C" {
/* Public interface */
struct _node; /* Declare the existence of this type */
+#ifndef Py_BUILD_CORE
+Py_DEPRECATED(3.9)
+#endif
PyAPI_FUNC(PyCodeObject *) PyNode_Compile(struct _node *, const char *);
/* XXX (ncoghlan): Unprefixed type name in a public API! */