[issue37189] PyRun_String not exported in python38.dll

Eryk Sun report at bugs.python.org
Mon Jun 17 17:51:30 EDT 2019


Eryk Sun <eryksun at gmail.com> added the comment:

> api = ctypes.pythonapi
> api2 = ctypes.PyDLL("", handle=sys.dllhandle)

Those should be the same. In Windows, pythonapi is defined as PyDLL("python dll", None, sys.dllhandle). 

Wouldn't it be better to add a function to _testcapi that checks GetProcAddress(PyWin_DLLhModule, name)?

----------
nosy: +eryksun

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37189>
_______________________________________


More information about the Python-bugs-list mailing list