STINNER Victor <vstin...@redhat.com> added the comment:
I tested the following code: --- import ctypes, sys names = """ PyRun_String PyRun_AnyFile PyRun_AnyFileEx PyRun_AnyFileFlags PyRun_SimpleString PyRun_SimpleFile PyRun_SimpleFileEx PyRun_InteractiveOne PyRun_InteractiveLoop PyRun_File PyRun_FileEx PyRun_FileFlags """ api = ctypes.pythonapi api2 = ctypes.PyDLL("", handle=sys.dllhandle) for name in names.split(): if not hasattr(api, name) or not hasattr(api2, name): print("MISSING NAME", name) --- Current output: Missing names ['PyRun_AnyFile', 'PyRun_AnyFileEx', 'PyRun_File', 'PyRun_FileEx', 'PyRun_FileFlags', 'PyRun_InteractiveLoop', 'PyRun_InteractiveOne', 'PyRun_Simp leFile', 'PyRun_SimpleFileEx', 'PyRun_SimpleString', 'PyRun_String'] With my PR 14142: Missing names [] ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue37189> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com