From 03a7466b8fe60e78d17427ca83d7e6d49889a3ce Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Wed, 16 Apr 1997 00:34:46 +0000 Subject: [PATCH] OK, ready to make 'assert' a keyword (instead of '__assert__'). --- Grammar/Grammar | 2 +- Python/graminit.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Grammar/Grammar b/Grammar/Grammar index cfaee6dc158..73c298ff1fc 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] diff --git a/Python/graminit.c b/Python/graminit.c index 56717923149..7b31a31be74 100644 --- a/Python/graminit.c +++ b/Python/graminit.c @@ -1377,7 +1377,7 @@ static label labels[124] = { {1, "exec"}, {293, 0}, {1, "in"}, - {1, "__assert__"}, + {1, "assert"}, {282, 0}, {283, 0}, {284, 0},