Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
4011d865
Commit
4011d865
authored
May 20, 2019
by
Batuhan Taşkaya
Committed by
Guido van Rossum
May 20, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bpo-23896: Add a grammar where exec isn't a stmt (#13272)
https://bugs.python.org/issue23896
parent
c09a9f56
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
0 deletions
+6
-0
Lib/lib2to3/pygram.py
Lib/lib2to3/pygram.py
+3
-0
Misc/ACKS
Misc/ACKS
+1
-0
Misc/NEWS.d/next/Library/2019-05-13-05-49-15.bpo-23896.8TtUKo.rst
...S.d/next/Library/2019-05-13-05-49-15.bpo-23896.8TtUKo.rst
+2
-0
No files found.
Lib/lib2to3/pygram.py
View file @
4011d865
...
...
@@ -36,5 +36,8 @@ python_symbols = Symbols(python_grammar)
python_grammar_no_print_statement
=
python_grammar
.
copy
()
del
python_grammar_no_print_statement
.
keywords
[
"print"
]
python_grammar_no_print_and_exec_statement
=
python_grammar_no_print_statement
.
copy
()
del
python_grammar_no_print_and_exec_statement
.
keywords
[
"exec"
]
pattern_grammar
=
driver
.
load_packaged_grammar
(
"lib2to3"
,
_PATTERN_GRAMMAR_FILE
)
pattern_symbols
=
Symbols
(
pattern_grammar
)
Misc/ACKS
View file @
4011d865
...
...
@@ -1860,3 +1860,4 @@ Carsten Klein
Diego Rojas
Edison Abahurire
Geoff Shannon
Batuhan Taskaya
Misc/NEWS.d/next/Library/2019-05-13-05-49-15.bpo-23896.8TtUKo.rst
0 → 100644
View file @
4011d865
Adds a grammar to lib2to3.pygram that contains exec as a function not as
statement.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment