-
-
Notifications
You must be signed in to change notification settings - Fork 32.9k
GH-92239: Respect PEP 523 #92245
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-92239: Respect PEP 523 #92245
Changes from 1 commit
c6e875f
4fac45c
71505f9
42ae714
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4890,6 +4890,7 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, _PyInterpreterFrame *frame, int | |
|
||
TARGET(CALL_PY_EXACT_ARGS) { | ||
assert(call_shape.kwnames == NULL); | ||
DEOPT_IF(tstate->interp->eval_frame, CALL); | ||
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 don't know how to verify that these opcodes ( 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. |
||
_PyCallCache *cache = (_PyCallCache *)next_instr; | ||
int is_meth = is_method(stack_pointer, oparg); | ||
int argcount = oparg + is_meth; | ||
|
@@ -4923,6 +4924,7 @@ _PyEval_EvalFrameDefault(PyThreadState *tstate, _PyInterpreterFrame *frame, int | |
|
||
TARGET(CALL_PY_WITH_DEFAULTS) { | ||
assert(call_shape.kwnames == NULL); | ||
DEOPT_IF(tstate->interp->eval_frame, CALL); | ||
_PyCallCache *cache = (_PyCallCache *)next_instr; | ||
int is_meth = is_method(stack_pointer, oparg); | ||
int argcount = oparg + is_meth; | ||
|
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.
more for my understanding - this test case fails without the added PEP-523 checks? (but the other one passes?)
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.
Both tests should fail without the checks.