Message151595
http://docs.python.org/reference/lexical_analysis.html
Changed in version 2.5: Both as and with are only recognized when the with_statement future feature has been enabled. It will always be enabled in Python 2.6. See section The with statement for details. Note that using as and with as identifiers will always issue a warning, even when the with_statement future directive is not in effect.
That was reasonable wording for 2.5 itself, but at this point, I think it would be simpler to add a Changed in version 2.6 entry. Perhaps:
Changed in version 2.5: Using as or with as identifiers triggers a warning. Using them as statements requires the with_statement future feature.
Changed in Python 2.6: as and with became full keywords. |
|
Date |
User |
Action |
Args |
2012-01-19 00:45:57 | Jim.Jewett | set | recipients:
+ Jim.Jewett, docs@python |
2012-01-19 00:45:57 | Jim.Jewett | set | messageid: <1326933957.4.0.830452813069.issue13820@psf.upfronthosting.co.za> |
2012-01-19 00:45:56 | Jim.Jewett | link | issue13820 messages |
2012-01-19 00:45:56 | Jim.Jewett | create | |
|