-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
gh-132775: Add _PyFunction_GetXIData() #133481
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gh-132775: Add _PyFunction_GetXIData() #133481
Conversation
d762347
to
4a195d8
Compare
Python/crossinterp_data_lookup.h
Outdated
if (_PyFunction_VerifyStateless(tstate, func) < 0) { | ||
PyObject *cause = _PyErr_GetRaisedException(tstate); | ||
assert(cause != NULL); | ||
const char *msg = "non-stateless functions are not shareable"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not confusing, but the triple negation (non, less, not) looks a bit redundant. I do not think NotShareableError
needs "not shareable" in the message.
Thanks @ericsnowcurrently for the PR 🌮🎉.. I'm working now to backport this PR to: 3.14. |
(cherry picked from commit 8cf4947) Co-authored-by: Eric Snow <[email protected]>
GH-133955 is a backport of this pull request to the 3.14 branch. |
|
(cherry picked from commit 8cf4947, AKA gh-133481) Co-authored-by: Eric Snow <[email protected]>
(This is based on gh-133480, thus only the last commit.)