Skip to content

Allow 'continue' in 'finally' clause #76670

Closed

Description

@serhiy-storchaka
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']

    Activity

    1. serhiy-storchaka commented on Jan 3, 2018

      @serhiy-storchaka
      MemberAuthor

      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.

    2. added
      interpreter-core
      type-feature
      on Jan 3, 2018
    3. serhiy-storchaka commented on Jan 3, 2018

      @serhiy-storchaka
      MemberAuthor

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

    4. gvanrossum commented on Jan 3, 2018

      @gvanrossum
      Member

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

    5. serhiy-storchaka commented on Mar 12, 2018

      @serhiy-storchaka
      MemberAuthor

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

    6. added
      3.8 (EOL)
      and removed
      3.7 (EOL)
      on Mar 12, 2018
    7. serhiy-storchaka commented on Mar 18, 2018

      @serhiy-storchaka
      MemberAuthor

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

    8. transferred this issue fromon Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Labels

    3.8 (EOL)interpreter-coretype-feature

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions