comparison Python/ceval.c @ 60129:6df6c19fbae3 legacy-trunk

Issue #8276: PyEval_CallObject() is now only available in macro form. The function declaration, which was kept for backwards compatibility reasons, is now removed (the macro was introduced in 1997!).
author Antoine Pitrou <solipsis@pitrou.net>
date Thu, 01 Apr 2010 16:42:11 +0000
parents dbad1c0668c9
children 5cea27275af1
comparison
equal deleted inserted replaced
60126:882d681d50a0 60129:6df6c19fbae3
3850 return PyFile_WriteString("\n", f); 3850 return PyFile_WriteString("\n", f);
3851 } 3851 }
3852 3852
3853 3853
3854 /* External interface to call any callable object. 3854 /* External interface to call any callable object.
3855 The arg must be a tuple or NULL. */ 3855 The arg must be a tuple or NULL. The kw must be a dict or NULL. */
3856
3857 #undef PyEval_CallObject
3858 /* for backward compatibility: export this interface */
3859
3860 PyObject *
3861 PyEval_CallObject(PyObject *func, PyObject *arg)
3862 {
3863 return PyEval_CallObjectWithKeywords(func, arg, (PyObject *)NULL);
3864 }
3865 #define PyEval_CallObject(func,arg) \
3866 PyEval_CallObjectWithKeywords(func, arg, (PyObject *)NULL)
3867 3856
3868 PyObject * 3857 PyObject *
3869 PyEval_CallObjectWithKeywords(PyObject *func, PyObject *arg, PyObject *kw) 3858 PyEval_CallObjectWithKeywords(PyObject *func, PyObject *arg, PyObject *kw)
3870 { 3859 {
3871 PyObject *result; 3860 PyObject *result;