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 — bpo-45711: [asyncio] Normalize exceptions immediately after Fetch, before they are stored as StackItem, which should be normalized by iritkatriel · Pull Request #29890 · python/cpython Conversation
|
|
This broke a couple of the asyncio tests, I'm checking why. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Right, because I removed the traceback update, which is not part of the normalising. The tests pass if I put it back. But I think the right place to do this is when the exception is captured, here cpython/Modules/_asynciomodule.c Line 2705 in cb8f491 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…a StackItem (exc_info)
| if (tb2 != NULL) { | ||
| PyException_SetTraceback(val2, tb2); | ||
| } | ||
|
|
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Is this deletion supposed to be part of this PR? (The PR title didn't indicate a cleanup in errors.c.)
@1st1 should probably review this.
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.
It is intended, I thought the error.c change doesn’t need to be in news because it’s a private function.
Yes, I’ll wait to hear from @1st1.
Once we have just exc_value in StackItem, I think we should add something like a PyErr_FetchNormalized(&exc) for these cases. Then you use PyErr_Fetch only for Fetch-Restore.
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.
Actually it's a good point, I'll remove this from this PR so it's just asyncio and @1st1 won't need to worry about this part.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
This reverts commit 847fcdb.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
LG from me, not sure how long to wait for @1st1.
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.