This patch adds new calling conventions to ctypes foreign functions by
passing 'errno=True' or 'GetLastError=True' to the CDLL or WinDLL
constructor.
If CDLL(..., errno=True) or WinDLL(..., errno=True) is used, the
function objects available in the CDLL or WinDLL instance will set the
C global errno to zero before the actual call, and attach the C global
errno value after the call as 'errno' attribute to the function
object. This attribute is stored in thread-local storage.
这是包含的bug tracker:
相关问题 更多 >
编程相关推荐