[issue1798] Add ctypes calling convention that allows safe access of errno
Amaury Forgeot d'Arc
report at bugs.python.org
Fri Jan 11 22:27:52 CET 2008
Amaury Forgeot d'Arc added the comment:
I like this way to tell that a function modifies errno or GetLastError.
But this thread-local attribute on the function seems bizarre to me.
I would prefer another way to get the errno. I can see two alternatives:
- the function returns a tuple (normalresult, errno) on each call.
- when errno is not zero, EnvironmentError (or WindowsError) is raised.
----------
nosy: +amaury.forgeotdarc
__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1798>
__________________________________
More information about the Python-bugs-list
mailing list