]> granicus.if.org Git - python/commit
bpo-35766: compile(): rename feature_version parameter (GH-13994) (GH-14001)
authorVictor Stinner <vstinner@redhat.com>
Wed, 12 Jun 2019 14:17:05 +0000 (16:17 +0200)
committerGitHub <noreply@github.com>
Wed, 12 Jun 2019 14:17:05 +0000 (16:17 +0200)
commitb2fd32b2f041402bb9fc8607f01566c055aafed9
tree4489daefdbb66d8ee6a2c544e17a9d057752965e
parent70a4178ec47154fdcc3ff06c13149e178d014581
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)
Lib/ast.py
Lib/test/test_type_comments.py
Python/bltinmodule.c
Python/clinic/bltinmodule.c.h