Reset errno to zero after calling PyErr_Warn(). It can potentially do
a lot of work, including I/O (e.g. to import warnings.py), which might affect errno.
Showing
Please register or sign in to comment
a lot of work, including I/O (e.g. to import warnings.py), which might affect errno.