Lichen

tests/operators.py

295:cb64d3e04c11
2016-12-01 Paul Boddie Supported Sliceobj usage, introduced slice step information to __getslice__. Added tests involving slices.
     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