The example pre you used is for ancient Python version, 2.3.2. Python 3.x
line introduced a number of incompatibilites not only in the language but in
the C API as well.
The functions you mention simply no longer exist in Python 3.2.
PyString_functions were renamed to
PyBytes_.
PyInt_functions are gone,
PyLong_should be used instead.
Here’s the same example that you’ve used but for Python 3:
5.3. Pure
Embedding
Note that it’s using
PyUnipre_instead of
PyString_/PyBytes_. In many
places where Python 2.x used byte strings, Python 3.x uses unipre strings.
By the way, I usually use this page to look up all possible calls:
Index – P



