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

Allow 'continue' in 'finally' clause #76670

Closed
serhiy-storchaka opened this issue Jan 3, 2018 · 5 comments
Closed

Allow 'continue' in 'finally' clause #76670

serhiy-storchaka opened this issue Jan 3, 2018 · 5 comments
Assignees
Labels
3.8 only security fixes interpreter-core (Objects, Python, Grammar, and Parser dirs) type-feature A feature request or enhancement

Comments

@serhiy-storchaka
Copy link
Member

BPO 32489
Nosy @gvanrossum, @serhiy-storchaka, @nitishch
PRs
  • bpo-32489: Allow 'continue' in 'finally' clause. #5822
  • bpo-37830: Revert "bpo-32489: Allow 'continue' in 'finally' clause. (GH-5822)" #15230
  • 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/serhiy-storchaka'
    closed_at = <Date 2018-03-18.09:56:09.189>
    created_at = <Date 2018-01-03.21:11:07.894>
    labels = ['interpreter-core', 'type-feature', '3.8']
    title = "Allow 'continue' in 'finally' clause"
    updated_at = <Date 2019-08-12.18:18:36.664>
    user = 'https://github.com/serhiy-storchaka'

    bugs.python.org fields:

    activity = <Date 2019-08-12.18:18:36.664>
    actor = 'serhiy.storchaka'
    assignee = 'serhiy.storchaka'
    closed = True
    closed_date = <Date 2018-03-18.09:56:09.189>
    closer = 'serhiy.storchaka'
    components = ['Interpreter Core']
    creation = <Date 2018-01-03.21:11:07.894>
    creator = 'serhiy.storchaka'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 32489
    keywords = ['patch']
    message_count = 5.0
    messages = ['309434', '309436', '309441', '313638', '314031']
    nosy_count = 3.0
    nosy_names = ['gvanrossum', 'serhiy.storchaka', 'nitishch']
    pr_nums = ['5822', '15230']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue32489'
    versions = ['Python 3.8']

    @serhiy-storchaka
    Copy link
    Member Author

    A 'continue' statement is illegal in the 'finally' clause due to a problem with the current implementation. After resolving bpo-17611 it will be easy to remove this restriction.

    @serhiy-storchaka serhiy-storchaka added the 3.7 (EOL) end of life label Jan 3, 2018
    @serhiy-storchaka serhiy-storchaka self-assigned this Jan 3, 2018
    @serhiy-storchaka serhiy-storchaka added interpreter-core (Objects, Python, Grammar, and Parser dirs) type-feature A feature request or enhancement labels Jan 3, 2018
    @serhiy-storchaka
    Copy link
    Member Author

    See the patch against PR 5006 at serhiy-storchaka#2.

    @gvanrossum
    Copy link
    Member

    I think this should be accepted once the code is reviewed.

    @serhiy-storchaka
    Copy link
    Member Author

    If there are no objections I'll merge this PR soon.

    @serhiy-storchaka serhiy-storchaka added 3.8 only security fixes and removed 3.7 (EOL) end of life labels Mar 12, 2018
    @serhiy-storchaka
    Copy link
    Member Author

    New changeset fe2bbb1 by Serhiy Storchaka in branch 'master':
    bpo-32489: Allow 'continue' in 'finally' clause. (GH-5822)
    fe2bbb1

    @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
    3.8 only security fixes interpreter-core (Objects, Python, Grammar, and Parser dirs) type-feature A feature request or enhancement
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants