There’s a nice example of that in test_functools.py. TestLRUPy.cached_func works exactly like this.
The author was not a beginner, far from it. The spurious trailing comma trips us all up from time to time.
There’s a nice example of that in test_functools.py. TestLRUPy.cached_func works exactly like this.
The author was not a beginner, far from it. The spurious trailing comma trips us all up from time to time.