-
-
Notifications
You must be signed in to change notification settings - Fork 32k
gh-74929: PEP 667 C API documentation #119379
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
Changes from all commits
67f645e
60917a5
fa3f14a
560229e
b827c7e
3c04ea9
185b48f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1888,8 +1888,7 @@ frame_get_var(_PyInterpreterFrame *frame, PyCodeObject *co, int i, | |
} | ||
// (likely) Otherwise it is an arg (kind & CO_FAST_LOCAL), | ||
// with the initial value set when the frame was created... | ||
// (unlikely) ...or it was set to some initial value by | ||
// an earlier call to PyFrame_LocalsToFast(). | ||
// (unlikely) ...or it was set via the f_locals proxy. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm pretty sure this "set externally" loophole still exists, it's just accessed slightly differently now. |
||
} | ||
} | ||
} | ||
|
@@ -2002,18 +2001,24 @@ PyFrame_GetVarString(PyFrameObject *frame, const char *name) | |
int | ||
PyFrame_FastToLocalsWithError(PyFrameObject *f) | ||
{ | ||
// Nothing to do here, as f_locals is now a write-through proxy in | ||
// optimized frames. Soft-deprecated, since there's no maintenance hassle. | ||
return 0; | ||
} | ||
|
||
void | ||
PyFrame_FastToLocals(PyFrameObject *f) | ||
{ | ||
// Nothing to do here, as f_locals is now a write-through proxy in | ||
// optimized frames. Soft-deprecated, since there's no maintenance hassle. | ||
return; | ||
} | ||
|
||
void | ||
PyFrame_LocalsToFast(PyFrameObject *f, int clear) | ||
{ | ||
// Nothing to do here, as f_locals is now a write-through proxy in | ||
// optimized frames. Soft-deprecated, since there's no maintenance hassle. | ||
return; | ||
} | ||
|
||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Uh oh!
There was an error while loading. Please reload this page.