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-96793: Implement PEP 479 in bytecode. by markshannon · Pull Request #99006 · python/cpython Conversation
|
|
|
||
| def compare_events(self, line_offset, events, expected_events): | ||
| events = [(l - line_offset, e) for (l, e) in events] | ||
| events = [(l - line_offset if l is not None else None, e) for (l, e) in events] |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I introduced for debugging this PR. It is no longer strictly necessary, but it gives nicer output when tests fail.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
|
||
| static int | ||
| wrap_in_stopiteration_handler(struct compiler *c) | ||
| { |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I wonder if this is not wrapping too much, like the instructions that deal with the function's arguments and annotations?
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.
Annotations are executed in the enclosing scope, as are defaults. So there is no problem there.
MAKE_CELL and RETURN_GENERATOR instructions are inserted in the back-end so happen after 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.
LGTM
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.