File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -106,6 +106,8 @@ def test_expressions(self):
106106 self .check_expr ("lambda x, *y, **z: 0" )
107107 self .check_expr ("(x for x in range(10))" )
108108 self .check_expr ("foo(x for x in range(10))" )
109+ self .check_expr ("..." )
110+ self .check_expr ("a[...]" )
109111
110112 def test_simple_expression (self ):
111113 # expr_stmt
Original file line number Diff line number Diff line change @@ -61,6 +61,8 @@ Core and Builtins
6161Library
6262-------
6363
64+ - Issue #14741: Fix missing support for Ellipsis ('...') in parser module.
65+
6466- Issue #14697: Fix missing support for set displays and set comprehensions in
6567 parser module.
6668
Original file line number Diff line number Diff line change @@ -2389,17 +2389,13 @@ validate_atom(node *tree)
23892389 break ;
23902390 case NAME :
23912391 case NUMBER :
2392+ case ELLIPSIS :
23922393 res = (nch == 1 );
23932394 break ;
23942395 case STRING :
23952396 for (pos = 1 ; res && (pos < nch ); ++ pos )
23962397 res = validate_ntype (CHILD (tree , pos ), STRING );
23972398 break ;
2398- case DOT :
2399- res = (nch == 3 &&
2400- validate_ntype (CHILD (tree , 1 ), DOT ) &&
2401- validate_ntype (CHILD (tree , 2 ), DOT ));
2402- break ;
24032399 default :
24042400 res = 0 ;
24052401 break ;
You can’t perform that action at this time.
0 commit comments