[issue1798] Add ctypes calling convention that allows safe access of errno
Thomas Heller
report at bugs.python.org
Fri May 23 15:42:31 CEST 2008
Thomas Heller <theller at ctypes.org> added the comment:
But would it hurt to set errno to zero before *any* function call?
My experiments show that it is faster to clear errno always
instead of trying to get a previously set value from tls storage in a
ctypes-global object created by calling "threading.local()".
__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1798>
__________________________________
More information about the Python-bugs-list
mailing list