Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2.6 is no longer in the future #58028

Closed
jimjjewett mannequin opened this issue Jan 19, 2012 · 3 comments
Closed

2.6 is no longer in the future #58028

jimjjewett mannequin opened this issue Jan 19, 2012 · 3 comments
Assignees
Labels
docs Documentation in the Doc dir type-feature A feature request or enhancement

Comments

@jimjjewett
Copy link
Mannequin

jimjjewett mannequin commented Jan 19, 2012

BPO 13820
Nosy @terryjreedy, @JimJJewett

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = 'https://github.com/terryjreedy'
closed_at = <Date 2012-01-21.05:35:57.279>
created_at = <Date 2012-01-19.00:45:56.824>
labels = ['type-feature', 'docs']
title = '2.6 is no longer in the future'
updated_at = <Date 2012-01-21.05:35:57.277>
user = 'https://github.com/JimJJewett'

bugs.python.org fields:

activity = <Date 2012-01-21.05:35:57.277>
actor = 'terry.reedy'
assignee = 'terry.reedy'
closed = True
closed_date = <Date 2012-01-21.05:35:57.279>
closer = 'terry.reedy'
components = ['Documentation']
creation = <Date 2012-01-19.00:45:56.824>
creator = 'Jim.Jewett'
dependencies = []
files = []
hgrepos = []
issue_num = 13820
keywords = []
message_count = 3.0
messages = ['151595', '151723', '151724']
nosy_count = 4.0
nosy_names = ['terry.reedy', 'docs@python', 'python-dev', 'Jim.Jewett']
pr_nums = []
priority = 'normal'
resolution = 'fixed'
stage = 'resolved'
status = 'closed'
superseder = None
type = 'enhancement'
url = 'https://bugs.python.org/issue13820'
versions = ['Python 2.7']

@jimjjewett
Copy link
Mannequin Author

jimjjewett mannequin commented Jan 19, 2012

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.

@jimjjewett jimjjewett mannequin assigned docspython Jan 19, 2012
@jimjjewett jimjjewett mannequin added docs Documentation in the Doc dir type-feature A feature request or enhancement labels Jan 19, 2012
@python-dev
Copy link
Mannequin

python-dev mannequin commented Jan 21, 2012

New changeset c84b39c18963 by Terry Jan Reedy in branch '2.7':
bpo-13820 as and with really became keywords in 2.6.
http://hg.python.org/cpython/rev/c84b39c18963

@terryjreedy
Copy link
Member

I verified that 'as' and 'with' are in the 2.6 keyword.kwlist.
http://svn.python.org/projects/python/branches/release26-maint/Lib/keyword.py. I verified that they work as keywords in 2.7.
http://svn.python.org/projects/python/branches/release26-maint/Doc/reference/compound_stmts.rst
says with is always enabled in 2.6.

I fixed whitespace error in 74551 (117d58fc6e8d)

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir type-feature A feature request or enhancement
Projects
None yet
Development

No branches or pull requests

1 participant