Lichen

tests/operators.py

581:7c5a7efcaf14
2017-02-13 Paul Boddie Added __str__ to the wrapper class to delegate to wrapped objects. method-wrapper-for-context
     1 import operator     2      3 def f(a, op, b):     4     return op(a, b)     5      6 print f(1, operator.add, 2) # 3     7 print f(1, operator.sub, 2) # -1