Mercurial > cpython-lru_cache-weakref
diff Python/ceval.c @ 6206:77f5b6cbea66 legacy-trunk
Inline PyObject_CallObject (Marc-Andre Lemburg).
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Sat, 30 Aug 1997 15:02:50 +0000 |
| parents | 32aacd753f34 |
| children | 4279f4eb210a |
line wrap: on
line diff
--- a/Python/ceval.c Fri Aug 29 22:37:44 1997 +0000 +++ b/Python/ceval.c Sat Aug 30 15:02:50 1997 +0000 @@ -2254,6 +2254,9 @@ /* External interface to call any callable object. The arg must be a tuple or NULL. */ +#undef PyEval_CallObject +/* for backward compatibility: export this interface */ + PyObject * PyEval_CallObject(func, arg) PyObject *func; @@ -2261,6 +2264,8 @@ { return PyEval_CallObjectWithKeywords(func, arg, (PyObject *)NULL); } +#define PyEval_CallObject(func,arg) \ + PyEval_CallObjectWithKeywords(func, arg, (PyObject *)NULL) PyObject * PyEval_CallObjectWithKeywords(func, arg, kw)
