You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Well, #defines are not exported in shared libraries. I suppose PyEval_CallObject() was part of an old definition of the Python C-API and it was kept for compatibility.
Yeah, I meant the function. Sorry for not being specific enough. I suppose the function is there to preserve ABI, but definitely code needed recompilation since 2007.
Right, we can certainly suppress the function definition now and just keep the macro.
(especially given it's 1997, not 2007, there was a typo in my message)
Activity
fijal commentedon Mar 31, 2010
In ceval.c there is such code:
Is this needed any longer? (both #define and function have the same name)
pitrou commentedon Mar 31, 2010
Well, #defines are not exported in shared libraries. I suppose PyEval_CallObject() was part of an old definition of the Python C-API and it was kept for compatibility.
pitrou commentedon Mar 31, 2010
The #define dates back from 2007, this changeset:
branch: trunk
user: guido
date: Sat Aug 30 17:02:50 1997 +0200
files: Include/ceval.h Python/ceval.c
description:
[svn r8683] Inline PyObject_CallObject (Marc-Andre Lemburg).
malemburg commentedon Mar 31, 2010
Antoine Pitrou wrote:
That's not useless: it's a typical backwards compatibility macro
to auto-upgrade existing software via recompile.
It's also still used a lot in the Python source code and elsewhere:
http://www.google.de/search?q=PyEval_CallObject
The function PyEval_CallObject() can probably be removed by
now, though.
fijal commentedon Apr 1, 2010
Yeah, I meant the function. Sorry for not being specific enough. I suppose the function is there to preserve ABI, but definitely code needed recompilation since 2007.
pitrou commentedon Apr 1, 2010
Right, we can certainly suppress the function definition now and just keep the macro.
(especially given it's 1997, not 2007, there was a typo in my message)
pitrou commentedon Apr 1, 2010
Fixed in r79555 (trunk), r79556 (py3k).