Skip to content

finally block doesn't re-raise exception if return statement exists inside #77003

@DavidRebbe

Description

@DavidRebbe
BPO 32822
Nosy @ambv, @serhiy-storchaka, @pablogsal, @miss-islington, @iritkatriel, @robertohueso
PRs
  • bpo-32822: Add finally with return/break/continue to the tutorial #25600
  • [3.9] bpo-32822: Add finally with return/break/continue to the tutorial (GH-25600) #25890
  • [3.10] bpo-32822: Add finally with return/break/continue to the tutorial (GH-25600) #25893
  • Files
  • finally_test.py: shows exception handling differences in finally block
  • 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 = None
    closed_at = <Date 2021-05-04.13:18:24.476>
    created_at = <Date 2018-02-11.22:18:17.367>
    labels = ['easy', 'type-feature', '3.9', '3.10', 'docs']
    title = "finally block doesn't re-raise exception if return statement exists inside"
    updated_at = <Date 2021-07-18.15:30:36.296>
    user = 'https://bugs.python.org/DavidRebbe'

    bugs.python.org fields:

    activity = <Date 2021-07-18.15:30:36.296>
    actor = 'pablogsal'
    assignee = 'docs@python'
    closed = True
    closed_date = <Date 2021-05-04.13:18:24.476>
    closer = 'lukasz.langa'
    components = ['Documentation']
    creation = <Date 2018-02-11.22:18:17.367>
    creator = 'David Rebbe'
    dependencies = []
    files = ['47438']
    hgrepos = []
    issue_num = 32822
    keywords = ['patch', 'easy']
    message_count = 10.0
    messages = ['312014', '312015', '312017', '313858', '313968', '388690', '391949', '392886', '392889', '392890']
    nosy_count = 8.0
    nosy_names = ['docs@python', 'lukasz.langa', 'serhiy.storchaka', 'pablogsal', 'miss-islington', 'David Rebbe', 'iritkatriel', 'robertohueso']
    pr_nums = ['25600', '25890', '25893']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue32822'
    versions = ['Python 3.9', 'Python 3.10']

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      3.10only security fixes3.9 (EOL)end of lifedocsDocumentation in the Doc direasytype-featureA feature request or enhancement
      No fields configured for issues without a type.

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions