X Tutup
The Wayback Machine - https://web.archive.org/web/20250603090133/https://github.com/python/cpython/issues/69724
Skip to content

Traceback from __exit__ method is misleading #69724

Closed
@bitdancer

Description

@bitdancer
BPO 25538
Nosy @terryjreedy, @bitdancer, @vadmium, @1st1, @RazerM, @kuraga
Files
  • with_traceback_monkeypatch.py: python code to change line shown in tracebacks to point to with statement when error is thrown in exit.
  • with_traceback_fixed+async.py: python code to change line shown in tracebacks to point to with or async with statement when error is thrown in exit.
  • 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 = None
    created_at = <Date 2015-11-02.23:08:02.983>
    labels = []
    title = 'Traceback from __exit__ method is misleading'
    updated_at = <Date 2020-11-27.10:52:59.697>
    user = 'https://github.com/bitdancer'

    bugs.python.org fields:

    activity = <Date 2020-11-27.10:52:59.697>
    actor = 'kuraga'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = []
    creation = <Date 2015-11-02.23:08:02.983>
    creator = 'r.david.murray'
    dependencies = []
    files = ['49322', '49323']
    hgrepos = []
    issue_num = 25538
    keywords = []
    message_count = 9.0
    messages = ['253949', '253964', '253997', '254244', '254245', '254252', '290632', '373821', '373827']
    nosy_count = 7.0
    nosy_names = ['terry.reedy', 'r.david.murray', 'martin.panter', 'yselivanov', 'RazerM', 'Tadhg McDonald-Jensen', 'kuraga']
    pr_nums = []
    priority = 'normal'
    resolution = None
    stage = None
    status = 'open'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue25538'
    versions = []

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      No labels
      No labels

      Projects

      No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        X Tutup