Skip to content

Conversation

@jdemeyer
Copy link
Contributor

@jdemeyer jdemeyer commented Jun 17, 2019

Thanks to #13973, the private function _PyObject_FastCall_Prepend is no longer used, so we can remove it.

Note that the implementation is actually buggy: it contains an off-by-1 error in the condition nargs <= (Py_ssize_t)Py_ARRAY_LENGTH(small_stack) (forgetting to reserve space for the prepended argument). Since nargs was always at most 2 in all calls of this function, this bug was never noticed.

CC @methane

https://bugs.python.org/issue37231

@methane methane merged commit 0456df4 into python:master Jun 17, 2019
@jdemeyer jdemeyer deleted the bpo37231 branch June 17, 2019 12:16
lisroach pushed a commit to lisroach/cpython that referenced this pull request Sep 10, 2019
DinoV pushed a commit to DinoV/cpython that referenced this pull request Jan 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

4 participants