[issue8276] useless PyEval_CallObject function

2010-04-01 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker ___ ___

[issue8276] useless PyEval_CallObject function

2010-04-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: Fixed in r79555 (trunk), r79556 (py3k). -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue8276] useless PyEval_CallObject function

2010-04-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: 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) -- assignee: -> pitrou priority: -> normal stage: -> needs patch type: -> feature request v

[issue8276] useless PyEval_CallObject function

2010-03-31 Thread Maciek Fijalkowski
Maciek Fijalkowski added the comment: 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. -- ___ Python tracker

[issue8276] useless PyEval_CallObject function

2010-03-31 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Antoine Pitrou wrote: > > Antoine Pitrou added the comment: > > 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 > de

[issue8276] useless PyEval_CallObject function

2010-03-31 Thread Antoine Pitrou
Antoine Pitrou added the comment: 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). --

[issue8276] useless PyEval_CallObject function

2010-03-31 Thread Antoine Pitrou
Antoine Pitrou added the comment: 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. -- nosy: +pitrou ___ Python tracker

[issue8276] useless PyEval_CallObject function

2010-03-31 Thread Maciek Fijalkowski
New submission from Maciek Fijalkowski : In ceval.c there is such code: PyObject * PyEval_CallObject(PyObject *func, PyObject *arg) { return PyEval_CallObjectWithKeywords(func, arg, (PyObject *)NULL); } #define PyEval_CallObject(func,arg) \ PyEval_CallObjectWithKeywords(func, arg