3 ms·
> Explicit yield points certainly save you from most of the classic threading errors You know what also saves you from most classic threading errors? The GIL,
by nicolaslem 8y ago
> Explicit yield points certainly save you from most of the classic threading errors
You know what also saves you from most classic threading errors? The GIL, and yet people writing multi-threaded code in Python still use locks and thread-safe datastructures, because most errors is not enough.
Explicit yield points when the developer is forced to yield does not bring much more safety than executing normal Python bytecode.