[issue9760] Suggestion for improving with documentation

2010-09-03 Thread Georg Brandl
Georg Brandl added the comment: Actually, the with_item contains the context expression *and* the optional "as target" clause, so they are not equivalent I committed a clarification in r84482. -- nosy: +georg.brandl resolution: -> fixed status: open -> closed ___

[issue9760] Suggestion for improving with documentation

2010-09-03 Thread Jason Baker
New submission from Jason Baker : http://docs.python.org/reference/compound_stmts.html#with This documentation refers to "context expressions" in two places. However, it never really defines what a context expression is. The formal syntax that's presented is this: with_stmt ::= "with" with