Nick Coghlan wrote: > Grammar Change > -------------- > Current:: > statement ::= stmt_list NEWLINE | compound_stmt > > New:: > statement ::= (stmt_list NEWLINE | compound_stmt) [local_namespace] > local_namespace ::= "with" ":" suite > > > Semantics > --------- > The code:: > ><statement> with: > <suite> > > translates to:: > > def unique_name(): > <suite> > <statement> > unique_name() >
Your proposed grammar change says that you need a newline after the statement: statement with: suite e.g. res = [ f(i) for i in objects ] with: def f(x): pass or for i in objects: f(i) with: def f(x): pass -- http://mail.python.org/mailman/listinfo/python-list