Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I couldn't find many references to it either, but the tutorial you linked to mentions this:</p> <blockquote> <p>The string format and the following arguments are as for Py_BuildValue (XXX so i really should have described that by now!). A call such as</p> <pre><code>PyEval_CallFunction(obj, "iii", a, b, c); </code></pre> <p>is equivalent to</p> <pre><code>PyEval_CallObject(obj, Py_BuildValue("iii", a, b, c)); </code></pre> </blockquote> <p>I suppose <code>PyEval_CallFunction</code> is not public API, as its value seems rather limited. There is not much of a difference between these two. But then again, I'm not really involved in python extensions, so this is just my view on this.</p> <p><code>PyEval_CallObject</code> itself is just a macro around <code>PyEval_CallObjectWithKeywords</code>.</p> <pre><code>#define PyEval_CallObject(func,arg) \ PyEval_CallObjectWithKeywords(func, arg, (PyObject *)NULL) </code></pre> <hr> <p>On the matter of "What is public API?" here is a recent message from Martin v. Löwis:</p> <blockquote> <p>Just to stress and support Georg's explanation: the API is <em>not</em> defined through the documentation, but instead primarily through the header files. All functions declared as PyAPI_FUNC and not starting with _Py are public API. There used to be a lot of undocumented API (up to 1.4, there was no API documentation at all, only the extension module tutorial); these days, more and more API gets documented.</p> </blockquote> <p><a href="http://mail.python.org/pipermail/python-dev/2011-February/107973.html" rel="nofollow">http://mail.python.org/pipermail/python-dev/2011-February/107973.html</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload