• Victor Stinner's avatar
    Add _PyObject_FastCall() · 9be7e7b5
    Victor Stinner yazdı
    Issue #27128: Add _PyObject_FastCall(), a new calling convention avoiding a
    temporary tuple to pass positional parameters in most cases, but create a
    temporary tuple if needed (ex: for the tp_call slot).
    
    The API is prepared to support keyword parameters, but the full implementation
    will come later (_PyFunction_FastCall() doesn't support keyword parameters
    yet).
    
    Add also:
    
    * _PyStack_AsTuple() helper function: convert a "stack" of parameters to
      a tuple.
    * _PyCFunction_FastCall(): fast call implementation for C functions
    * _PyFunction_FastCall(): fast call implementation for Python functions
    9be7e7b5
methodobject.h 3.43 KB