GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — gh-101517: Attach line number to the RERAISE at the end of a try-except* by iritkatriel · Pull Request #101768 · python/cpython Conversation
|
| """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()]) | ||
| >>> | ||
| """ |
There was a problem 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.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
This is wrong, I'll do something else. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.