Skip to content

Commit 8689a10

Browse files
committed
Merged revisions 79555 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r79555 | antoine.pitrou | 2010-04-01 18:42:11 +0200 (jeu., 01 avril 2010) | 5 lines 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!). ........
1 parent c8bdc01 commit 8689a10

3 files changed

Lines changed: 5 additions & 16 deletions

File tree

Include/ceval.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@ extern "C" {
1010
PyAPI_FUNC(PyObject *) PyEval_CallObjectWithKeywords(
1111
PyObject *, PyObject *, PyObject *);
1212

13-
/* DLL-level Backwards compatibility: */
14-
#undef PyEval_CallObject
15-
PyAPI_FUNC(PyObject *) PyEval_CallObject(PyObject *, PyObject *);
16-
1713
/* Inline this */
1814
#define PyEval_CallObject(func,arg) \
1915
PyEval_CallObjectWithKeywords(func, arg, (PyObject *)NULL)

Misc/NEWS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,10 @@ Core and Builtins
246246
C-API
247247
-----
248248

249+
- Issue #8276: PyEval_CallObject() is now only available in macro form. The
250+
function declaration, which was kept for backwards compatibility reasons,
251+
is now removed (the macro was introduced in 1997!).
252+
249253
- Issue #7767: New function PyLong_AsLongLongAndOverflow added,
250254
analogous to PyLong_AsLongAndOverflow.
251255

Python/ceval.c

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3695,18 +3695,7 @@ PyEval_MergeCompilerFlags(PyCompilerFlags *cf)
36953695

36963696

36973697
/* External interface to call any callable object.
3698-
The arg must be a tuple or NULL. */
3699-
3700-
#undef PyEval_CallObject
3701-
/* for backward compatibility: export this interface */
3702-
3703-
PyObject *
3704-
PyEval_CallObject(PyObject *func, PyObject *arg)
3705-
{
3706-
return PyEval_CallObjectWithKeywords(func, arg, (PyObject *)NULL);
3707-
}
3708-
#define PyEval_CallObject(func,arg) \
3709-
PyEval_CallObjectWithKeywords(func, arg, (PyObject *)NULL)
3698+
The arg must be a tuple or NULL. The kw must be a dict or NULL. */
37103699

37113700
PyObject *
37123701
PyEval_CallObjectWithKeywords(PyObject *func, PyObject *arg, PyObject *kw)

0 commit comments

Comments
 (0)