Parent article: Adding None-aware operators to Python? I agree with your point, but the second line is actually equivalent to this, which is admittedly even more verbose: mangle_from_ = ( True if ...
Like many things, this can be fixed with some indirection: def nvl(v, default): if v is None: return default() else: return v f(nvl(g(), lambda: expensive())) ...