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-103488: Use return-offset, not yield-offset. by markshannon · Pull Request #103502 · python/cpython Conversation
|
| STACK_SHRINK(shrink_stack); | ||
| new_frame->localsplus[0] = owner; | ||
| JUMPBY(INLINE_CACHE_ENTRIES_LOAD_ATTR); | ||
| frame->return_offset = 0; |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
What are the rules about when this needs to be 0ed and when it doesn't?
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.
return_offset is only meaningful to the callee, so it needs to be set in any CALL (to a Python function) or SEND (to a coroutine or generator).
If there is no callee, then it is meaningless.
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.
I've added a comment in pycore_frame.h
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Also, this PR fixes #101914, output from pylint using example: @mdboom can you confirm that? =) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
* main: pythongh-103479: [Enum] require __new__ to be considered a data type (pythonGH-103495) pythongh-103365: [Enum] STRICT boundary corrections (pythonGH-103494) pythonGH-103488: Use return-offset, not yield-offset. (pythonGH-103502) pythongh-103088: Fix test_venv error message to avoid bytes/str warning (pythonGH-103500) pythonGH-103082: Turn on branch events for FOR_ITER instructions. (python#103507) pythongh-102978: Fix mock.patch function signatures for class and staticmethod decorators (python#103228) pythongh-103462: Ensure SelectorSocketTransport.writelines registers a writer when data is still pending (python#103463) pythongh-95299: Rework test_cppext.py to not invoke setup.py directly (python#103316)
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.