[Python-3000-checkins] r51598 - in python/branches/p3yk: Doc/ref/ref5.tex Grammar/Grammar Lib/tokenize.py Parser/tokenizer.c Python/ast.c Python/compile.c Python/graminit.c

brett.cannon python-3000-checkins at python.org
Fri Aug 25 06:28:24 CEST 2006


Author: brett.cannon
Date: Fri Aug 25 06:28:18 2006
New Revision: 51598

Modified:
   python/branches/p3yk/Doc/ref/ref5.tex
   python/branches/p3yk/Grammar/Grammar
   python/branches/p3yk/Lib/tokenize.py
   python/branches/p3yk/Parser/tokenizer.c
   python/branches/p3yk/Python/ast.c
   python/branches/p3yk/Python/compile.c
   python/branches/p3yk/Python/graminit.c
Log:
Remove support for backticks from the grammar and compiler.

Still need to remove traces of the UNARY_CONVERT opcode.


Modified: python/branches/p3yk/Doc/ref/ref5.tex
==============================================================================
--- python/branches/p3yk/Doc/ref/ref5.tex	(original)
+++ python/branches/p3yk/Doc/ref/ref5.tex	Fri Aug 25 06:28:18 2006
@@ -268,49 +268,6 @@
 \indexii{immutable}{object}
 
 
-\subsection{String conversions\label{string-conversions}}
-\indexii{string}{conversion}
-\indexii{reverse}{quotes}
-\indexii{backward}{quotes}
-\index{back-quotes}
-
-A string conversion is an expression list enclosed in reverse (a.k.a.
-backward) quotes:
-
-\begin{productionlist}
-  \production{string_conversion}
-             {"`" \token{expression_list} "`"}
-\end{productionlist}
-
-A string conversion evaluates the contained expression list and
-converts the resulting object into a string according to rules
-specific to its type.
-
-If the object is a string, a number, \code{None}, or a tuple, list or
-dictionary containing only objects whose type is one of these, the
-resulting string is a valid Python expression which can be passed to
-the built-in function \function{eval()} to yield an expression with the
-same value (or an approximation, if floating point numbers are
-involved).
-
-(In particular, converting a string adds quotes around it and converts
-``funny'' characters to escape sequences that are safe to print.)
-
-Recursive objects (for example, lists or dictionaries that contain a
-reference to themselves, directly or indirectly) use \samp{...} to
-indicate a recursive reference, and the result cannot be passed to
-\function{eval()} to get an equal value (\exception{SyntaxError} will
-be raised instead).
-\obindex{recursive}
-
-The built-in function \function{repr()} performs exactly the same
-conversion in its argument as enclosing it in parentheses and reverse
-quotes does.  The built-in function \function{str()} performs a
-similar but more user-friendly conversion.
-\bifuncindex{repr}
-\bifuncindex{str}
-
-
 \section{Primaries\label{primaries}}
 \index{primary}
 

Modified: python/branches/p3yk/Grammar/Grammar
==============================================================================
--- python/branches/p3yk/Grammar/Grammar	(original)
+++ python/branches/p3yk/Grammar/Grammar	Fri Aug 25 06:28:18 2006
@@ -102,7 +102,6 @@
 atom: ('(' [yield_expr|testlist_gexp] ')' |
        '[' [listmaker] ']' |
        '{' [dictmaker] '}' |
-       '`' testlist1 '`' |
        NAME | NUMBER | STRING+)
 listmaker: test ( list_for | (',' test)* [','] )
 testlist_gexp: test ( gen_for | (',' test)* [','] )

Modified: python/branches/p3yk/Lib/tokenize.py
==============================================================================
--- python/branches/p3yk/Lib/tokenize.py	(original)
+++ python/branches/p3yk/Lib/tokenize.py	Fri Aug 25 06:28:18 2006
@@ -83,7 +83,7 @@
                  r"~")
 
 Bracket = '[][(){}]'
-Special = group(r'\r?\n', r'[:;.,`@]')
+Special = group(r'\r?\n', r'[:;.,@]')
 Funny = group(Operator, Bracket, Special)
 
 PlainToken = group(Number, Funny, String, Name)

Modified: python/branches/p3yk/Parser/tokenizer.c
==============================================================================
--- python/branches/p3yk/Parser/tokenizer.c	(original)
+++ python/branches/p3yk/Parser/tokenizer.c	Fri Aug 25 06:28:18 2006
@@ -67,7 +67,6 @@
 	"EQUAL",
 	"DOT",
 	"PERCENT",
-	"BACKQUOTE",
 	"LBRACE",
 	"RBRACE",
 	"EQEQUAL",
@@ -955,7 +954,6 @@
 	case '=':	return EQUAL;
 	case '.':	return DOT;
 	case '%':	return PERCENT;
-	case '`':	return BACKQUOTE;
 	case '{':	return LBRACE;
 	case '}':	return RBRACE;
 	case '^':	return CIRCUMFLEX;

Modified: python/branches/p3yk/Python/ast.c
==============================================================================
--- python/branches/p3yk/Python/ast.c	(original)
+++ python/branches/p3yk/Python/ast.c	Fri Aug 25 06:28:18 2006
@@ -1190,7 +1190,7 @@
 ast_for_atom(struct compiling *c, const node *n)
 {
     /* atom: '(' [yield_expr|testlist_gexp] ')' | '[' [listmaker] ']'
-       | '{' [dictmaker] '}' | '`' testlist '`' | NAME | NUMBER | STRING+
+       | '{' [dictmaker] '}' | NAME | NUMBER | STRING+
     */
     node *ch = CHILD(n, 0);
     
@@ -1276,13 +1276,6 @@
 	}
 	return Dict(keys, values, LINENO(n), n->n_col_offset, c->c_arena);
     }
-    case BACKQUOTE: { /* repr */
-	expr_ty expression = ast_for_testlist(c, CHILD(n, 1));
-	if (!expression)
-	    return NULL;
-
-	return Repr(expression, LINENO(n), n->n_col_offset, c->c_arena);
-    }
     default:
 	PyErr_Format(PyExc_SystemError, "unhandled atom %d", TYPE(ch));
 	return NULL;

Modified: python/branches/p3yk/Python/compile.c
==============================================================================
--- python/branches/p3yk/Python/compile.c	(original)
+++ python/branches/p3yk/Python/compile.c	Fri Aug 25 06:28:18 2006
@@ -721,7 +721,6 @@
 		case UNARY_POSITIVE:
 		case UNARY_NEGATIVE:
 		case UNARY_NOT:
-		case UNARY_CONVERT:
 		case UNARY_INVERT:
 			return 0;
 
@@ -2983,10 +2982,6 @@
 		return compiler_compare(c, e);
 	case Call_kind:
 		return compiler_call(c, e);
-	case Repr_kind:
-		VISIT(c, expr, e->v.Repr.value);
-		ADDOP(c, UNARY_CONVERT);
-		break;
 	case Num_kind:
 		ADDOP_O(c, LOAD_CONST, e->v.Num.n, consts);
 		break;

Modified: python/branches/p3yk/Python/graminit.c
==============================================================================
--- python/branches/p3yk/Python/graminit.c	(original)
+++ python/branches/p3yk/Python/graminit.c	Fri Aug 25 06:28:18 2006
@@ -1242,68 +1242,59 @@
 	{1, arcs_60_2},
 	{1, arcs_60_3},
 };
-static arc arcs_61_0[7] = {
+static arc arcs_61_0[6] = {
 	{13, 1},
 	{144, 2},
 	{147, 3},
+	{19, 4},
 	{150, 4},
-	{19, 5},
-	{152, 5},
-	{153, 6},
+	{151, 5},
 };
 static arc arcs_61_1[3] = {
-	{43, 7},
-	{143, 7},
-	{15, 5},
+	{43, 6},
+	{143, 6},
+	{15, 4},
 };
 static arc arcs_61_2[2] = {
-	{145, 8},
-	{146, 5},
+	{145, 7},
+	{146, 4},
 };
 static arc arcs_61_3[2] = {
-	{148, 9},
-	{149, 5},
+	{148, 8},
+	{149, 4},
 };
 static arc arcs_61_4[1] = {
-	{151, 10},
+	{0, 4},
 };
-static arc arcs_61_5[1] = {
+static arc arcs_61_5[2] = {
+	{151, 5},
 	{0, 5},
 };
-static arc arcs_61_6[2] = {
-	{153, 6},
-	{0, 6},
+static arc arcs_61_6[1] = {
+	{15, 4},
 };
 static arc arcs_61_7[1] = {
-	{15, 5},
+	{146, 4},
 };
 static arc arcs_61_8[1] = {
-	{146, 5},
-};
-static arc arcs_61_9[1] = {
-	{149, 5},
+	{149, 4},
 };
-static arc arcs_61_10[1] = {
-	{150, 5},
-};
-static state states_61[11] = {
-	{7, arcs_61_0},
+static state states_61[9] = {
+	{6, arcs_61_0},
 	{3, arcs_61_1},
 	{2, arcs_61_2},
 	{2, arcs_61_3},
 	{1, arcs_61_4},
-	{1, arcs_61_5},
-	{2, arcs_61_6},
+	{2, arcs_61_5},
+	{1, arcs_61_6},
 	{1, arcs_61_7},
 	{1, arcs_61_8},
-	{1, arcs_61_9},
-	{1, arcs_61_10},
 };
 static arc arcs_62_0[1] = {
 	{26, 1},
 };
 static arc arcs_62_1[3] = {
-	{154, 2},
+	{152, 2},
 	{27, 3},
 	{0, 1},
 };
@@ -1329,7 +1320,7 @@
 	{26, 1},
 };
 static arc arcs_63_1[3] = {
-	{155, 2},
+	{153, 2},
 	{27, 3},
 	{0, 1},
 };
@@ -1384,7 +1375,7 @@
 	{15, 5},
 };
 static arc arcs_65_2[1] = {
-	{156, 6},
+	{154, 6},
 };
 static arc arcs_65_3[1] = {
 	{19, 5},
@@ -1408,14 +1399,14 @@
 	{1, arcs_65_6},
 };
 static arc arcs_66_0[1] = {
-	{157, 1},
+	{155, 1},
 };
 static arc arcs_66_1[2] = {
 	{27, 2},
 	{0, 1},
 };
 static arc arcs_66_2[2] = {
-	{157, 1},
+	{155, 1},
 	{0, 2},
 };
 static state states_66[3] = {
@@ -1437,14 +1428,14 @@
 };
 static arc arcs_67_3[3] = {
 	{26, 5},
-	{158, 6},
+	{156, 6},
 	{0, 3},
 };
 static arc arcs_67_4[1] = {
 	{75, 6},
 };
 static arc arcs_67_5[2] = {
-	{158, 6},
+	{156, 6},
 	{0, 5},
 };
 static arc arcs_67_6[1] = {
@@ -1531,7 +1522,7 @@
 	{2, arcs_71_4},
 };
 static arc arcs_72_0[1] = {
-	{159, 1},
+	{157, 1},
 };
 static arc arcs_72_1[1] = {
 	{19, 2},
@@ -1567,7 +1558,7 @@
 	{1, arcs_72_7},
 };
 static arc arcs_73_0[3] = {
-	{160, 1},
+	{158, 1},
 	{28, 2},
 	{29, 3},
 };
@@ -1582,7 +1573,7 @@
 	{26, 6},
 };
 static arc arcs_73_4[4] = {
-	{160, 1},
+	{158, 1},
 	{28, 2},
 	{29, 3},
 	{0, 4},
@@ -1611,7 +1602,7 @@
 	{26, 1},
 };
 static arc arcs_74_1[3] = {
-	{155, 2},
+	{153, 2},
 	{25, 3},
 	{0, 1},
 };
@@ -1628,8 +1619,8 @@
 	{1, arcs_74_3},
 };
 static arc arcs_75_0[2] = {
-	{154, 1},
-	{162, 1},
+	{152, 1},
+	{160, 1},
 };
 static arc arcs_75_1[1] = {
 	{0, 1},
@@ -1651,7 +1642,7 @@
 	{104, 4},
 };
 static arc arcs_76_4[2] = {
-	{161, 5},
+	{159, 5},
 	{0, 4},
 };
 static arc arcs_76_5[1] = {
@@ -1672,7 +1663,7 @@
 	{105, 2},
 };
 static arc arcs_77_2[2] = {
-	{161, 3},
+	{159, 3},
 	{0, 2},
 };
 static arc arcs_77_3[1] = {
@@ -1685,8 +1676,8 @@
 	{1, arcs_77_3},
 };
 static arc arcs_78_0[2] = {
-	{155, 1},
-	{164, 1},
+	{153, 1},
+	{162, 1},
 };
 static arc arcs_78_1[1] = {
 	{0, 1},
@@ -1708,7 +1699,7 @@
 	{106, 4},
 };
 static arc arcs_79_4[2] = {
-	{163, 5},
+	{161, 5},
 	{0, 4},
 };
 static arc arcs_79_5[1] = {
@@ -1729,7 +1720,7 @@
 	{105, 2},
 };
 static arc arcs_80_2[2] = {
-	{163, 3},
+	{161, 3},
 	{0, 2},
 };
 static arc arcs_80_3[1] = {
@@ -1763,7 +1754,7 @@
 	{1, arcs_82_1},
 };
 static arc arcs_83_0[1] = {
-	{166, 1},
+	{165, 1},
 };
 static arc arcs_83_1[2] = {
 	{9, 2},
@@ -1779,11 +1770,11 @@
 };
 static dfa dfas[84] = {
 	{256, "single_input", 0, 3, states_0,
-	 "\004\050\014\000\000\000\000\025\074\005\023\310\011\020\004\000\140\010\111\203\100"},
+	 "\004\050\014\000\000\000\000\025\074\005\023\310\011\020\004\000\140\010\311\040\040"},
 	{257, "file_input", 0, 2, states_1,
-	 "\204\050\014\000\000\000\000\025\074\005\023\310\011\020\004\000\140\010\111\203\100"},
+	 "\204\050\014\000\000\000\000\025\074\005\023\310\011\020\004\000\140\010\311\040\040"},
 	{258, "eval_input", 0, 3, states_2,
-	 "\000\040\010\000\000\000\000\000\000\000\000\000\000\020\004\000\140\010\111\003\000"},
+	 "\000\040\010\000\000\000\000\000\000\000\000\000\000\020\004\000\140\010\311\000\000"},
 	{259, "decorator", 0, 7, states_3,
 	 "\000\010\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000"},
 	{260, "decorators", 0, 2, states_4,
@@ -1799,13 +1790,13 @@
 	{265, "fplist", 0, 3, states_9,
 	 "\000\040\010\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000"},
 	{266, "stmt", 0, 2, states_10,
-	 "\000\050\014\000\000\000\000\025\074\005\023\310\011\020\004\000\140\010\111\203\100"},
+	 "\000\050\014\000\000\000\000\025\074\005\023\310\011\020\004\000\140\010\311\040\040"},
 	{267, "simple_stmt", 0, 4, states_11,
-	 "\000\040\010\000\000\000\000\025\074\005\023\000\000\020\004\000\140\010\111\003\100"},
+	 "\000\040\010\000\000\000\000\025\074\005\023\000\000\020\004\000\140\010\311\000\040"},
 	{268, "small_stmt", 0, 2, states_12,
-	 "\000\040\010\000\000\000\000\025\074\005\023\000\000\020\004\000\140\010\111\003\100"},
+	 "\000\040\010\000\000\000\000\025\074\005\023\000\000\020\004\000\140\010\311\000\040"},
 	{269, "expr_stmt", 0, 6, states_13,
-	 "\000\040\010\000\000\000\000\000\000\000\000\000\000\020\004\000\140\010\111\003\000"},
+	 "\000\040\010\000\000\000\000\000\000\000\000\000\000\020\004\000\140\010\311\000\000"},
 	{270, "augassign", 0, 2, states_14,
 	 "\000\000\000\000\000\360\377\000\000\000\000\000\000\000\000\000\000\000\000\000\000"},
 	{271, "print_stmt", 0, 9, states_15,
@@ -1815,7 +1806,7 @@
 	{273, "pass_stmt", 0, 2, states_17,
 	 "\000\000\000\000\000\000\000\020\000\000\000\000\000\000\000\000\000\000\000\000\000"},
 	{274, "flow_stmt", 0, 2, states_18,
-	 "\000\000\000\000\000\000\000\000\074\000\000\000\000\000\000\000\000\000\000\000\100"},
+	 "\000\000\000\000\000\000\000\000\074\000\000\000\000\000\000\000\000\000\000\000\040"},
 	{275, "break_stmt", 0, 2, states_19,
 	 "\000\000\000\000\000\000\000\000\004\000\000\000\000\000\000\000\000\000\000\000\000"},
 	{276, "continue_stmt", 0, 2, states_20,
@@ -1823,7 +1814,7 @@
 	{277, "return_stmt", 0, 3, states_21,
 	 "\000\000\000\000\000\000\000\000\020\000\000\000\000\000\000\000\000\000\000\000\000"},
 	{278, "yield_stmt", 0, 2, states_22,
-	 "\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\100"},
+	 "\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\040"},
 	{279, "raise_stmt", 0, 7, states_23,
 	 "\000\000\000\000\000\000\000\000\040\000\000\000\000\000\000\000\000\000\000\000\000"},
 	{280, "import_stmt", 0, 2, states_24,
@@ -1849,7 +1840,7 @@
 	{290, "assert_stmt", 0, 5, states_34,
 	 "\000\000\000\000\000\000\000\000\000\000\020\000\000\000\000\000\000\000\000\000\000"},
 	{291, "compound_stmt", 0, 2, states_35,
-	 "\000\010\004\000\000\000\000\000\000\000\000\310\011\000\000\000\000\000\000\200\000"},
+	 "\000\010\004\000\000\000\000\000\000\000\000\310\011\000\000\000\000\000\000\040\000"},
 	{292, "if_stmt", 0, 8, states_36,
 	 "\000\000\000\000\000\000\000\000\000\000\000\010\000\000\000\000\000\000\000\000\000"},
 	{293, "while_stmt", 0, 8, states_37,
@@ -1865,69 +1856,69 @@
 	{298, "except_clause", 0, 5, states_42,
 	 "\000\000\000\000\000\000\000\000\000\000\000\000\040\000\000\000\000\000\000\000\000"},
 	{299, "suite", 0, 5, states_43,
-	 "\004\040\010\000\000\000\000\025\074\005\023\000\000\020\004\000\140\010\111\003\100"},
+	 "\004\040\010\000\000\000\000\025\074\005\023\000\000\020\004\000\140\010\311\000\040"},
 	{300, "testlist_safe", 0, 5, states_44,
-	 "\000\040\010\000\000\000\000\000\000\000\000\000\000\020\004\000\140\010\111\003\000"},
+	 "\000\040\010\000\000\000\000\000\000\000\000\000\000\020\004\000\140\010\311\000\000"},
 	{301, "old_test", 0, 2, states_45,
-	 "\000\040\010\000\000\000\000\000\000\000\000\000\000\020\004\000\140\010\111\003\000"},
+	 "\000\040\010\000\000\000\000\000\000\000\000\000\000\020\004\000\140\010\311\000\000"},
 	{302, "old_lambdef", 0, 5, states_46,
 	 "\000\000\000\000\000\000\000\000\000\000\000\000\000\020\000\000\000\000\000\000\000"},
 	{303, "test", 0, 6, states_47,
-	 "\000\040\010\000\000\000\000\000\000\000\000\000\000\020\004\000\140\010\111\003\000"},
+	 "\000\040\010\000\000\000\000\000\000\000\000\000\000\020\004\000\140\010\311\000\000"},
 	{304, "or_test", 0, 2, states_48,
-	 "\000\040\010\000\000\000\000\000\000\000\000\000\000\000\004\000\140\010\111\003\000"},
+	 "\000\040\010\000\000\000\000\000\000\000\000\000\000\000\004\000\140\010\311\000\000"},
 	{305, "and_test", 0, 2, states_49,
-	 "\000\040\010\000\000\000\000\000\000\000\000\000\000\000\004\000\140\010\111\003\000"},
+	 "\000\040\010\000\000\000\000\000\000\000\000\000\000\000\004\000\140\010\311\000\000"},
 	{306, "not_test", 0, 3, states_50,
-	 "\000\040\010\000\000\000\000\000\000\000\000\000\000\000\004\000\140\010\111\003\000"},
+	 "\000\040\010\000\000\000\000\000\000\000\000\000\000\000\004\000\140\010\311\000\000"},
 	{307, "comparison", 0, 2, states_51,
-	 "\000\040\010\000\000\000\000\000\000\000\000\000\000\000\000\000\140\010\111\003\000"},
+	 "\000\040\010\000\000\000\000\000\000\000\000\000\000\000\000\000\140\010\311\000\000"},
 	{308, "comp_op", 0, 4, states_52,
 	 "\000\000\000\000\000\000\000\000\000\000\010\000\000\000\344\017\000\000\000\000\000"},
 	{309, "expr", 0, 2, states_53,
-	 "\000\040\010\000\000\000\000\000\000\000\000\000\000\000\000\000\140\010\111\003\000"},
+	 "\000\040\010\000\000\000\000\000\000\000\000\000\000\000\000\000\140\010\311\000\000"},
 	{310, "xor_expr", 0, 2, states_54,
-	 "\000\040\010\000\000\000\000\000\000\000\000\000\000\000\000\000\140\010\111\003\000"},
+	 "\000\040\010\000\000\000\000\000\000\000\000\000\000\000\000\000\140\010\311\000\000"},
 	{311, "and_expr", 0, 2, states_55,
-	 "\000\040\010\000\000\000\000\000\000\000\000\000\000\000\000\000\140\010\111\003\000"},
+	 "\000\040\010\000\000\000\000\000\000\000\000\000\000\000\000\000\140\010\311\000\000"},
 	{312, "shift_expr", 0, 2, states_56,
-	 "\000\040\010\000\000\000\000\000\000\000\000\000\000\000\000\000\140\010\111\003\000"},
+	 "\000\040\010\000\000\000\000\000\000\000\000\000\000\000\000\000\140\010\311\000\000"},
 	{313, "arith_expr", 0, 2, states_57,
-	 "\000\040\010\000\000\000\000\000\000\000\000\000\000\000\000\000\140\010\111\003\000"},
+	 "\000\040\010\000\000\000\000\000\000\000\000\000\000\000\000\000\140\010\311\000\000"},
 	{314, "term", 0, 2, states_58,
-	 "\000\040\010\000\000\000\000\000\000\000\000\000\000\000\000\000\140\010\111\003\000"},
+	 "\000\040\010\000\000\000\000\000\000\000\000\000\000\000\000\000\140\010\311\000\000"},
 	{315, "factor", 0, 3, states_59,
-	 "\000\040\010\000\000\000\000\000\000\000\000\000\000\000\000\000\140\010\111\003\000"},
+	 "\000\040\010\000\000\000\000\000\000\000\000\000\000\000\000\000\140\010\311\000\000"},
 	{316, "power", 0, 4, states_60,
-	 "\000\040\010\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\111\003\000"},
-	{317, "atom", 0, 11, states_61,
-	 "\000\040\010\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\111\003\000"},
+	 "\000\040\010\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\311\000\000"},
+	{317, "atom", 0, 9, states_61,
+	 "\000\040\010\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\311\000\000"},
 	{318, "listmaker", 0, 5, states_62,
-	 "\000\040\010\000\000\000\000\000\000\000\000\000\000\020\004\000\140\010\111\003\000"},
+	 "\000\040\010\000\000\000\000\000\000\000\000\000\000\020\004\000\140\010\311\000\000"},
 	{319, "testlist_gexp", 0, 5, states_63,
-	 "\000\040\010\000\000\000\000\000\000\000\000\000\000\020\004\000\140\010\111\003\000"},
+	 "\000\040\010\000\000\000\000\000\000\000\000\000\000\020\004\000\140\010\311\000\000"},
 	{320, "lambdef", 0, 5, states_64,
 	 "\000\000\000\000\000\000\000\000\000\000\000\000\000\020\000\000\000\000\000\000\000"},
 	{321, "trailer", 0, 7, states_65,
 	 "\000\040\000\000\000\000\000\000\000\010\000\000\000\000\000\000\000\000\001\000\000"},
 	{322, "subscriptlist", 0, 3, states_66,
-	 "\000\040\050\000\000\000\000\000\000\010\000\000\000\020\004\000\140\010\111\003\000"},
+	 "\000\040\050\000\000\000\000\000\000\010\000\000\000\020\004\000\140\010\311\000\000"},
 	{323, "subscript", 0, 7, states_67,
-	 "\000\040\050\000\000\000\000\000\000\010\000\000\000\020\004\000\140\010\111\003\000"},
+	 "\000\040\050\000\000\000\000\000\000\010\000\000\000\020\004\000\140\010\311\000\000"},
 	{324, "sliceop", 0, 3, states_68,
 	 "\000\000\040\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000"},
 	{325, "exprlist", 0, 3, states_69,
-	 "\000\040\010\000\000\000\000\000\000\000\000\000\000\000\000\000\140\010\111\003\000"},
+	 "\000\040\010\000\000\000\000\000\000\000\000\000\000\000\000\000\140\010\311\000\000"},
 	{326, "testlist", 0, 3, states_70,
-	 "\000\040\010\000\000\000\000\000\000\000\000\000\000\020\004\000\140\010\111\003\000"},
+	 "\000\040\010\000\000\000\000\000\000\000\000\000\000\020\004\000\140\010\311\000\000"},
 	{327, "dictmaker", 0, 5, states_71,
-	 "\000\040\010\000\000\000\000\000\000\000\000\000\000\020\004\000\140\010\111\003\000"},
+	 "\000\040\010\000\000\000\000\000\000\000\000\000\000\020\004\000\140\010\311\000\000"},
 	{328, "classdef", 0, 8, states_72,
-	 "\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\200\000"},
+	 "\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\040\000"},
 	{329, "arglist", 0, 8, states_73,
-	 "\000\040\010\060\000\000\000\000\000\000\000\000\000\020\004\000\140\010\111\003\000"},
+	 "\000\040\010\060\000\000\000\000\000\000\000\000\000\020\004\000\140\010\311\000\000"},
 	{330, "argument", 0, 4, states_74,
-	 "\000\040\010\000\000\000\000\000\000\000\000\000\000\020\004\000\140\010\111\003\000"},
+	 "\000\040\010\000\000\000\000\000\000\000\000\000\000\020\004\000\140\010\311\000\000"},
 	{331, "list_iter", 0, 2, states_75,
 	 "\000\000\000\000\000\000\000\000\000\000\000\210\000\000\000\000\000\000\000\000\000"},
 	{332, "list_for", 0, 6, states_76,
@@ -1941,13 +1932,13 @@
 	{336, "gen_if", 0, 4, states_80,
 	 "\000\000\000\000\000\000\000\000\000\000\000\010\000\000\000\000\000\000\000\000\000"},
 	{337, "testlist1", 0, 2, states_81,
-	 "\000\040\010\000\000\000\000\000\000\000\000\000\000\020\004\000\140\010\111\003\000"},
+	 "\000\040\010\000\000\000\000\000\000\000\000\000\000\020\004\000\140\010\311\000\000"},
 	{338, "encoding_decl", 0, 2, states_82,
 	 "\000\000\010\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000"},
 	{339, "yield_expr", 0, 3, states_83,
-	 "\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\100"},
+	 "\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\040"},
 };
-static label labels[167] = {
+static label labels[166] = {
 	{0, "EMPTY"},
 	{256, 0},
 	{4, 0},
@@ -2098,8 +2089,6 @@
 	{26, 0},
 	{327, 0},
 	{27, 0},
-	{25, 0},
-	{337, 0},
 	{2, 0},
 	{3, 0},
 	{332, 0},
@@ -2113,12 +2102,13 @@
 	{333, 0},
 	{334, 0},
 	{336, 0},
+	{337, 0},
 	{338, 0},
 	{1, "yield"},
 };
 grammar _PyParser_Grammar = {
 	84,
 	dfas,
-	{167, labels},
+	{166, labels},
 	256
 };


More information about the Python-3000-checkins mailing list