Skip to content

Implicit exception chaining (PEP 3134) #47358

Closed

Description

@pitrou
BPO 3108
Nosy @gvanrossum, @pitrou, @benjaminp
Files
  • context.patch
  • context2.patch
  • 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 2008-06-14.20:21:27.892>
    created_at = <Date 2008-06-13.23:02:33.937>
    labels = ['interpreter-core', 'type-bug']
    title = 'Implicit exception chaining (PEP 3134)'
    updated_at = <Date 2008-06-14.20:33:16.145>
    user = 'https://github.com/pitrou'

    bugs.python.org fields:

    activity = <Date 2008-06-14.20:33:16.145>
    actor = 'benjamin.peterson'
    assignee = 'none'
    closed = True
    closed_date = <Date 2008-06-14.20:21:27.892>
    closer = 'gvanrossum'
    components = ['Interpreter Core']
    creation = <Date 2008-06-13.23:02:33.937>
    creator = 'pitrou'
    dependencies = []
    files = ['10626', '10627']
    hgrepos = []
    issue_num = 3108
    keywords = ['patch']
    message_count = 5.0
    messages = ['68189', '68190', '68193', '68213', '68216']
    nosy_count = 3.0
    nosy_names = ['gvanrossum', 'pitrou', 'benjamin.peterson']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = None
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue3108'
    versions = ['Python 3.0']

    Activity

    1. pitrou commented on Jun 13, 2008

      @pitrou
      MemberAuthor

      This patch implements implicit except chaining (context) as per PEP-3134, or not quite. The difference is that PyErr_Set* functions do set
      the __context__ attribute, otherwise I think it would make an annoying
      discrepancy between exceptions generated by Python modules and
      exceptions generated by C modules (especially when some parts are
      written in C and others in Python, e.g. the io library).

      Unimplemented are the modifications in exception reporting.

    2. added
      interpreter-core(Objects, Python, Grammar, and Parser dirs)
      type-bugAn unexpected behavior, bug, or error
      on Jun 13, 2008
    3. gvanrossum commented on Jun 13, 2008

      @gvanrossum
      Member
    4. pitrou commented on Jun 14, 2008

      @pitrou
      MemberAuthor

      Guido, thanks for your comments. Here is a new patch addressing them.

    5. gvanrossum commented on Jun 14, 2008

      @gvanrossum
      Member

      Submitted as r64281.

      We still need a doc patch and changes to the exception printing (perhaps
      also to traceback.py). Please open new issues for those.

    6. benjaminp commented on Jun 14, 2008

      @benjaminp
      Contributor
    7. 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

    Assignees

    No one assigned

      Labels

      interpreter-core(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or error

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions