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
___
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