[Python-Dev] Exporting Python functions on AIX

Victor Stinner vstinner at redhat.com
Fri Jul 27 12:42:55 EDT 2018


Yes, all symbols starting with _Py are private and must not be used outside
CPython internals.

Victor

Le vendredi 27 juillet 2018, WILSON, MICHAEL <michael.a.wilson at atos.net> a
écrit :
> All,
>
> My excuse if this is not the appropriate list for a question essentially
concerning the AIX port of Python.
>
> The current port of Python for AIX includes composing an export file
(/lib/python2.7/config/python.exp) in which there are a number of functions
starting “Py_” or “_Py_”.
>
> The Vim package for AIX is built referencing the python.exp file and
unfortunately, when functions are removed from libpython, even those which
are not called, the vim command detects missing symbols.
>
> The most recent case (May 2017), functions _Py_hgidentity, _Py_hgversion
and _Py_svnversion were replaced/removed, see “bpo-27593: Get SCM build
info from git instead of hg (#1327)”.
>
> Is it correct to assume that the “_Py_” functions are internal (Python
name space) that should/must not be called by or made visible to
application code  ?
>
> Could you indicate a URL to the authoritative API documentation ?
>
> Thanks for your replies.
>
> Mike Wilson
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20180727/2dfc5aa8/attachment.html>


More information about the Python-Dev mailing list