
Nov. 23, 2017
3:49 p.m.
On Nov 22, 2017, at 19:32, Victor Stinner <victor.stinner@gmail.com> wrote:
Aha, contextlib.nullcontext() was just added, cool!
So, if I rewrite PEP 559 in terms of decorators it won’t get rejected? from functools import wraps def noop(func): @wraps(func) def wrapper(*args, **kws): return None return wrapper @noop def do_something_important(x, y, z): return blah_blah_blah(x, y, z) print(do_something_important(1, 2, z=3)) Cheers? -Barry