mirror of
https://github.com/python/cpython.git
synced 2025-12-15 21:44:50 +00:00
Add API for static strings, primarily good for identifiers.
Thanks to Konrad Schöbel and Jasper Schulz for helping with the mass-editing.
This commit is contained in:
parent
67df285a33
commit
afe55bba33
50 changed files with 578 additions and 240 deletions
|
|
@ -7,6 +7,7 @@ extern "C" {
|
|||
#ifdef PY_SSIZE_T_CLEAN
|
||||
#define PyObject_CallFunction _PyObject_CallFunction_SizeT
|
||||
#define PyObject_CallMethod _PyObject_CallMethod_SizeT
|
||||
#define _PyObject_CallMethodId _PyObject_CallMethodId_SizeT
|
||||
#endif
|
||||
|
||||
/* Abstract Object Interface (many thanks to Jim Fulton) */
|
||||
|
|
@ -307,11 +308,22 @@ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx*/
|
|||
Python expression: o.method(args).
|
||||
*/
|
||||
|
||||
PyAPI_FUNC(PyObject *) _PyObject_CallMethodId(PyObject *o, _Py_Identifier *method,
|
||||
char *format, ...);
|
||||
|
||||
/*
|
||||
Like PyObject_CallMethod, but expect a _Py_Identifier* as the
|
||||
method name.
|
||||
*/
|
||||
|
||||
PyAPI_FUNC(PyObject *) _PyObject_CallFunction_SizeT(PyObject *callable,
|
||||
char *format, ...);
|
||||
PyAPI_FUNC(PyObject *) _PyObject_CallMethod_SizeT(PyObject *o,
|
||||
char *name,
|
||||
char *format, ...);
|
||||
PyAPI_FUNC(PyObject *) _PyObject_CallMethodId_SizeT(PyObject *o,
|
||||
_Py_Identifier *name,
|
||||
char *format, ...);
|
||||
|
||||
PyAPI_FUNC(PyObject *) PyObject_CallFunctionObjArgs(PyObject *callable,
|
||||
...);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue