CPython's C-API has GIL acquiring/releasing functions such as PyGILState_Ensure and PyGILState_Release. Programmers can call CPython's C-APIs from outside of Python threads if they manage GIL's state ...
This module provides function decorators which can be used to wrap a function such that it will be retried until some condition is met. It is meant to be of use when accessing unreliable resources ...