summaryrefslogtreecommitdiffstats
path: root/Grammar
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-04-16 00:34:46 (GMT)
committerGuido van Rossum <guido@python.org>1997-04-16 00:34:46 (GMT)
commit03a7466b8fe60e78d17427ca83d7e6d49889a3ce (patch)
tree2fb15aa883b1e6b0745cf5689845f52be7be777b /Grammar
parent7aa9fc5642a08cdb94b698a0610c9dca01fb4d56 (diff)
downloadcpython-03a7466b8fe60e78d17427ca83d7e6d49889a3ce.zip
cpython-03a7466b8fe60e78d17427ca83d7e6d49889a3ce.tar.gz
cpython-03a7466b8fe60e78d17427ca83d7e6d49889a3ce.tar.bz2
OK, ready to make 'assert' a keyword (instead of '__assert__').
Diffstat (limited to 'Grammar')
-rw-r--r--Grammar/Grammar2
1 files changed, 1 insertions, 1 deletions
diff --git a/Grammar/Grammar b/Grammar/Grammar
index cfaee6d..73c298f 100644
--- a/Grammar/Grammar
+++ b/Grammar/Grammar
@@ -49,7 +49,7 @@ global_stmt: 'global' NAME (',' NAME)*
## accesstype should be ('public' | 'protected' | 'private') ['read'] ['write']
## but can't be because that would create undesirable reserved words!
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
if_stmt: 'if' test ':' suite ('elif' test ':' suite)* ['else' ':' suite]