Status of side-effecting functions in python
dan at tombstonezero.net
Sun Oct 26 00:22:01 CEST 2014
On Sat, 25 Oct 2014 23:41:52 +0200, Wolfgang Maier wrote:
> ... It may be rare to use an expression both for its side-effects and
> its return value ...
A lot of concurrency-related operations work that way. In the old days,
it was CPU-level Test and Set (or Compare and Set) instructions. These
days, we have Python's threading.Lock.acquire.
More information about the Python-list