[docs] [issue13820] 2.6 is no longer in the future

Jim Jewett report at bugs.python.org
Thu Jan 19 01:45:57 CET 2012

New submission from Jim Jewett <jimjjewett at gmail.com>:


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.

assignee: docs at python
components: Documentation
messages: 151595
nosy: Jim.Jewett, docs at python
priority: normal
severity: normal
status: open
title: 2.6 is no longer in the future
type: enhancement
versions: Python 2.7

Python tracker <report at bugs.python.org>

More information about the docs mailing list