Set the ctypes-private copy of errno; returns the previous value.
As in CPython, value must be an integer in the C int range (a BigInt or
boolean is accepted): out of range is a RangeError (Python int too large to convert to C long on Windows; signed integer is greater than maximum /
signed integer is less than minimum elsewhere), a non-integer a TypeError
('float' object cannot be interpreted as an integer), and any number of
arguments other than one a TypeError (function takes exactly 1 argument (N given)).
Set the ctypes-private copy of
errno; returns the previous value. As in CPython,valuemust be an integer in the Cintrange (a BigInt or boolean is accepted): out of range is a RangeError (Python int too large to convert to C longon Windows;signed integer is greater than maximum/signed integer is less than minimumelsewhere), a non-integer a TypeError ('float' object cannot be interpreted as an integer), and any number of arguments other than one a TypeError (function takes exactly 1 argument (N given)).Python equivalent:
ctypes.set_errno()