This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Jason.Baker
Recipients Jason.Baker, docs@python
Date 2010-09-03.17:51:33
SpamBayes Score 0.00056700304
Marked as misclassified No
Message-id <1283536295.47.0.948659460721.issue9760@psf.upfronthosting.co.za>
In-reply-to
Content
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_item ("," with_item)* ":" suite
with_item ::=  expression ["as" target]

As best I can tell, the context expression is essentially the with_item.  If that's the case, I propose one of the following:

 1) The formal syntax is changed so that "with_item" becomes "context_expression".
 2) References to "context expression" change to "with item".
 3) The "context expression" is defined to be the with_item in the formal syntax at some point in the documentation.
History
Date User Action Args
2010-09-03 17:51:35Jason.Bakersetrecipients: + Jason.Baker, docs@python
2010-09-03 17:51:35Jason.Bakersetmessageid: <1283536295.47.0.948659460721.issue9760@psf.upfronthosting.co.za>
2010-09-03 17:51:34Jason.Bakerlinkissue9760 messages
2010-09-03 17:51:33Jason.Bakercreate