◐ Shell
clean mode source ↗

gh-101517: Attach line number to the RERAISE at the end of a try-except* by iritkatriel · Pull Request #101768 · python/cpython

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Conversation

@iritkatriel

@iritkatriel iritkatriel commented

Feb 10, 2023

edited by bedevere-bot

Loading

Copy link Copy Markdown

Member

Comment thread

Lib/test/test_pdb.py Outdated

Comment on lines +1412 to +1431

"""See GH-101517

breakpoint in except* clause

>>> def test_function():
... try:
... raise ExceptionGroup("eg", [KeyError(), ValueError()])
... except* KeyError:
... breakpoint()
...
>>> with PdbTestInput([ # doctest: +NORMALIZE_WHITESPACE
... 'continue'
... ]):
... try:
... test_function()
... except Exception as e:
... print(repr(e))
ExceptionGroup('eg', [ValueError()])
>>>
"""

Copy link Copy Markdown

Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make patchcheck on the CI doesn't like these 5-space indents.

iritkatriel reacted with thumbs up emoji

@iritkatriel

Copy link Copy Markdown

Member Author

This is wrong, I'll do something else.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@hugovk hugovk hugovk left review comments

@markshannon markshannon Awaiting requested review from markshannon markshannon is a code owner

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@iritkatriel @hugovk @bedevere-bot