[Python-Dev] PyEval_Call* convenience functions (original) (raw)
Georg Brandl g.brandl at gmx.net
Fri Apr 24 20:59:01 CEST 2009
- Previous message: [Python-Dev] PyEval_Call* convenience functions
- Next message: [Python-Dev] Tuples and underorderable types
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Tim Lesher schrieb:
Is there a reason that the PyEvalCallFunction() and PyEvalCallMethod() convenience functions remain undocumented? (i.e., would a doc-and-test patch to correct this be rejected?)
I didn't see any mention of this coming up in python-dev before. Also, despite its name, PyEvalCallMethod() is quite useful for calling module-level functions or classes (given that it's just a PyObjectGetAttrString plus the implementation of PyEvalCallFunction). Is there any reason (beyond its undocumented status) to believe this use case would ever be deprecated?
FWIW, there's also PyObject_CallMethod(); all PyObject_Call* variants are documented, but none of the PyEval_Call* functions are. I actually don't know why we have two sets of these, with partially conflicting definitions; perhaps someone else can shed some light?
Georg
-- Thus spake the Lord: Thou shalt indent with four spaces. No more, no less. Four shall be the number of spaces thou shalt indent, and the number of thy indenting shall be four. Eight shalt thou not indent, nor either indent thou two, excepting that thou then proceed to four. Tabs are right out.
- Previous message: [Python-Dev] PyEval_Call* convenience functions
- Next message: [Python-Dev] Tuples and underorderable types
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]