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 — added exception groups by iritkatriel · Pull Request #25430 · python/cpython Conversation
|
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately we can't express here that ExceptionGroup subclasses BaseExceptionGroup as well.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Add a note in parentheses?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
There seems to be an unused feature that interprets whatever is in "(..)" as a platform name and then ignores any exception where the platform is not the current platform (so it won't break the test but will weaken it).
But "[...]" seems ok - anything in them appears to be ignored, and when I changed ExceptionGroup to something invalid the test failed.
cpython/Lib/test/test_baseexception.py
Line 49 in 8bbfeb3
| if '(' in exc_name: |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Is this what we will merge once the PEP is accepted?
(Note that the master -> main rename will happen at that time too. But supposedly PSs will be automatically adjusted. We’ll see.)
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Add a note in parentheses?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Probably mark as Draft? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
bbedd10 to
40c3cd0
Compare
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Is this what we will merge once the PEP is accepted?
That's the idea. The branch of the other PR is very old and compile.c/eval.c changed beyond what can be fixed with a rebase. So I started from scratch on a recent cut of master. Marked as draft for now.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
There seems to be an unused feature that interprets whatever is in "(..)" as a platform name and then ignores any exception where the platform is not the current platform (so it won't break the test but will weaken it).
But "[...]" seems ok - anything in them appears to be ignored, and when I changed ExceptionGroup to something invalid the test failed.
cpython/Lib/test/test_baseexception.py
Line 49 in 8bbfeb3
| if '(' in exc_name: |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
81b6b08 to
cecdf32
Compare
|
You should probably merge this on main. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…ality which is needed for cycle detection and except*'s reraise logic
cecdf32 to
0a9e6b5
Compare
|
I rebased and regenerated Python/importlib_external.h |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
This PR is stale because it has been open for 30 days with no activity. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Superseded by #28569. |
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.