diff options
author | Victor Stinner <vstinner@redhat.com> | 2019-06-12 14:17:05 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-12 14:17:05 (GMT) |
commit | b2fd32b2f041402bb9fc8607f01566c055aafed9 (patch) | |
tree | 4489daefdbb66d8ee6a2c544e17a9d057752965e /Python/bltinmodule.c | |
parent | 70a4178ec47154fdcc3ff06c13149e178d014581 (diff) | |
download | cpython-b2fd32b2f041402bb9fc8607f01566c055aafed9.zip cpython-b2fd32b2f041402bb9fc8607f01566c055aafed9.tar.gz cpython-b2fd32b2f041402bb9fc8607f01566c055aafed9.tar.bz2 |
bpo-35766: compile(): rename feature_version parameter (GH-13994) (GH-14001)
Rename compile() feature_version parameter to _feature_version and
convert it to a keyword-only parameter.
Update also test_type_comments to pass feature_version as a tuple.
(cherry picked from commit efdf6ca90f7702824e7aeee1ceca949e7c20288a)
Diffstat (limited to 'Python/bltinmodule.c')
-rw-r--r-- | Python/bltinmodule.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c index 56d882d..abf807a 100644 --- a/Python/bltinmodule.c +++ b/Python/bltinmodule.c @@ -696,7 +696,8 @@ compile as builtin_compile flags: int = 0 dont_inherit: bool(accept={int}) = False optimize: int = -1 - feature_version: int = -1 + * + _feature_version as feature_version: int = -1 Compile source into a code object that can be executed by exec() or eval(). @@ -716,7 +717,7 @@ static PyObject * builtin_compile_impl(PyObject *module, PyObject *source, PyObject *filename, const char *mode, int flags, int dont_inherit, int optimize, int feature_version) -/*[clinic end generated code: output=b0c09c84f116d3d7 input=5fcc30651a6acaa9]*/ +/*[clinic end generated code: output=b0c09c84f116d3d7 input=40171fb92c1d580d]*/ { PyObject *source_copy; const char *str; |