Message67260
> 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. |
|
| Date |
User |
Action |
Args |
| 2008-05-23 18:53:33 | loewis | set | spambayes_score: 0.0147019 -> 0.0147019 recipients:
+ loewis, arigo, theller, amaury.forgeotdarc, fijal |
| 2008-05-23 18:53:32 | loewis | link | issue1798 messages |
| 2008-05-23 18:53:30 | loewis | create | |
|