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
6b136043
Commit
6b136043
authored
Apr 16, 1997
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OK, ready to make 'assert' a keyword (instead of '__assert__').
parent
a5b6da04
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
Grammar/Grammar
Grammar/Grammar
+1
-1
Python/graminit.c
Python/graminit.c
+1
-1
No files found.
Grammar/Grammar
View file @
6b136043
...
@@ -49,7 +49,7 @@ global_stmt: 'global' NAME (',' NAME)*
...
@@ -49,7 +49,7 @@ global_stmt: 'global' NAME (',' NAME)*
## accesstype should be ('public' | 'protected' | 'private') ['read'] ['write']
## accesstype should be ('public' | 'protected' | 'private') ['read'] ['write']
## but can't be because that would create undesirable reserved words!
## but can't be because that would create undesirable reserved words!
exec_stmt: 'exec' expr ['in' test [',' test]]
exec_stmt: 'exec' expr ['in' test [',' test]]
assert_stmt: '
__assert__
' test [',' test]
assert_stmt: '
assert
' test [',' test]
compound_stmt: if_stmt | while_stmt | for_stmt | try_stmt | funcdef | classdef
compound_stmt: if_stmt | while_stmt | for_stmt | try_stmt | funcdef | classdef
if_stmt: 'if' test ':' suite ('elif' test ':' suite)* ['else' ':' suite]
if_stmt: 'if' test ':' suite ('elif' test ':' suite)* ['else' ':' suite]
...
...
Python/graminit.c
View file @
6b136043
...
@@ -1377,7 +1377,7 @@ static label labels[124] = {
...
@@ -1377,7 +1377,7 @@ static label labels[124] = {
{
1
,
"exec"
},
{
1
,
"exec"
},
{
293
,
0
},
{
293
,
0
},
{
1
,
"in"
},
{
1
,
"in"
},
{
1
,
"
__assert__
"
},
{
1
,
"
assert
"
},
{
282
,
0
},
{
282
,
0
},
{
283
,
0
},
{
283
,
0
},
{
284
,
0
},
{
284
,
0
},
...
...
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