File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ def g2(): return 1
122122[4 ]
123123from math import *
124124[5 ]
125- from sys import modules , ps1 , ps2
125+ from sys import modules , path
126126[6 ]
127127
128128### compound_stmt: if_stmt | while_stmt | for_stmt | try_stmt | funcdef | classdef
@@ -213,7 +213,7 @@ def g2(): return 1
213213x = + 1
214214x = - 1
215215x = 1
216- c = sys .ps1 [0 ]
216+ c = sys .path [0 ]
217217x = time .time ()
218218x = sys .modules ['time' ].time ()
219219a = '01234'
@@ -243,7 +243,11 @@ def g2(): return 1
243243
244244### exprlist: expr (',' expr)* [',']
245245### testlist: test (',' test)* [',']
246- # These have been exercised enough above
246+ # These have been exercised already above, except for trailing comma:
247+ x = 1 , 2 , 3 ,
248+ x = 1 ,
249+ x = (1 and 2 , 1 or 2 ,)
250+ x = (not 1 ,)
247251
248252print 'classdef' # 'class' NAME parameters ['=' baselist] ':' suite
249253### baselist: atom arguments (',' atom arguments)*
You can’t perform that action at this time.
0 commit comments