]> granicus.if.org Git - python/commitdiff
OK, ready to make 'assert' a keyword (instead of '__assert__').
authorGuido van Rossum <guido@python.org>
Wed, 16 Apr 1997 00:34:46 +0000 (00:34 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 16 Apr 1997 00:34:46 +0000 (00:34 +0000)
Grammar/Grammar
Python/graminit.c

index cfaee6dc1586423983df1cbc5391b0f119620a12..73c298ff1fc8add94edf5a0e8624b13bff1936e5 100644 (file)
@@ -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]
index 56717923149490f6d40b35e3323c6a2e6984a30d..7b31a31be74e37b984edaf142086390a1c40c2db 100644 (file)
@@ -1377,7 +1377,7 @@ static label labels[124] = {
        {1, "exec"},
        {293, 0},
        {1, "in"},
-       {1, "__assert__"},
+       {1, "assert"},
        {282, 0},
        {283, 0},
        {284, 0},