mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
[3.9] bpo-40939: Deprecate PyNode_Compile (GH-21036)
Automerge-Triggered-By: @pablogsal
This commit is contained in:
parent
5b1a311512
commit
8ae5e8ec81
3 changed files with 7 additions and 3 deletions
|
@ -705,9 +705,9 @@ Deprecated
|
||||||
stage, using the :mod:`ast` module.
|
stage, using the :mod:`ast` module.
|
||||||
|
|
||||||
* The Public C API functions :c:func:`PyParser_SimpleParseStringFlags`,
|
* The Public C API functions :c:func:`PyParser_SimpleParseStringFlags`,
|
||||||
:c:func:`PyParser_SimpleParseStringFlagsFilename` and
|
:c:func:`PyParser_SimpleParseStringFlagsFilename`,
|
||||||
:c:func:`PyParser_SimpleParseFileFlags` are deprecated and will be removed
|
:c:func:`PyParser_SimpleParseFileFlags` and :c:func:`PyNode_Compile`
|
||||||
in Python 3.10 together with the old parser.
|
are deprecated and will be removed in Python 3.10 together with the old parser.
|
||||||
|
|
||||||
* Using :data:`NotImplemented` in a boolean context has been deprecated,
|
* Using :data:`NotImplemented` in a boolean context has been deprecated,
|
||||||
as it is almost exclusively the result of incorrect rich comparator
|
as it is almost exclusively the result of incorrect rich comparator
|
||||||
|
|
|
@ -9,6 +9,9 @@ extern "C" {
|
||||||
|
|
||||||
/* Public interface */
|
/* Public interface */
|
||||||
struct _node; /* Declare the existence of this type */
|
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 *);
|
PyAPI_FUNC(PyCodeObject *) PyNode_Compile(struct _node *, const char *);
|
||||||
/* XXX (ncoghlan): Unprefixed type name in a public API! */
|
/* XXX (ncoghlan): Unprefixed type name in a public API! */
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
Deprecate :c:func:`PyNode_Compile`.
|
Loading…
Add table
Add a link
Reference in a new issue