2016-10-11 | Paul Boddie | file changeset files shortlog | Modified and made use of the get_attrname_from_location function, also tidying the deducer and adding documentation. |
paul@2 | 1 | import operator |
paul@2 | 2 | |
paul@2 | 3 | def f(a, op, b): |
paul@2 | 4 | return op(a, b) |
paul@2 | 5 | |
paul@2 | 6 | f(1, operator.add, 2) |
paul@2 | 7 | f(1, operator.sub, 2) |