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-143732: SEND specialization by markshannon · Pull Request #148963 · python/cpython Conversation
|
| "_PyStolenTuple_Free", | ||
| "PyObject_GC_UnTrack", | ||
| "_PyErr_ExceptionMatches", | ||
| "CALL_TP_ITERITEM", |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I don't think this is right?
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.
It is correct in the normal build, but I'll need to exclude lists in the free-threading build.
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.
Special casing the free-threaded build is too messy, so I've removed this from the whitelist instead.
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, just two questions, feel free to merge after addressing them.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| 0, /* am_anext */ | ||
| 0, /* am_send */ | ||
| .am_await = PyObject_SelfIter, | ||
| .am_send = _PyAsyncGenASend_Send, |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Why this change?
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.
Otherwise, the send needs to go through a call to the send method. I don't know why this wasn't implemented before.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| (PyLongObject *)PyStackRef_AsPyObjectBorrow(right)); \ | ||
| } | ||
|
|
||
| #define CALL_TP_ITERITEM(ITER, INDEX) \ |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I know this is to make it non-escaping to the analyzer, but it would be clearer if you said CALL_TP_ITERITEM_NO_ESCAPE or something.
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.
I dropped the special meaning, to avoid problems with the free-threading build.
I'll just remove the macro, as it isn't doing anything useful any more.
I dropped it for the SAI. I'll update the name as you suggest for the JIT.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Documentation build overview
80 files changed ·
|
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 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.