Author loewis
Recipients amaury.forgeotdarc, arigo, fijal, loewis, theller
Date 2008-05-23.18:53:20
SpamBayes Score 0.0147019
Marked as misclassified No
Message-id <4837129C.60002@v.loewis.de>
In-reply-to <48370324.6060705@ctypes.org>
Content
> AFAIU, set_errno/get_errno should provide a ctypes-private copy of the real errno.
> The copy is copied into the 'real' errno just before ffi_call (in Modules/_ctypes/callproc.c),
> and the real errno is copied in to ctypes copy right after the call.

If you clear errno, anyway, you can also drop the set_errno call, and
zero-initialize errno before each call. The point of set_errno would
be that you have the choice of *not* calling it, i.e. passing into
the function the errno value that was there before you made the API
call. If you fill something else into errno always, the application has
no way of not modifying errno before the API call.
History
Date User Action Args
2008-05-23 18:53:33loewissetspambayes_score: 0.0147019 -> 0.0147019
recipients: + loewis, arigo, theller, amaury.forgeotdarc, fijal
2008-05-23 18:53:32loewislinkissue1798 messages
2008-05-23 18:53:30loewiscreate