2016-11-26 | Paul Boddie | file changeset files shortlog | Changed serialisation to handle classes separately, since <class>.__str__ and <class>.__repr__ are interpreted as type.__str__ and type.__repr__ respectively (being provided by the class of <class>), but these methods would always be unbound even if directly obtained from <class>. |
paul@2 | 1 | def f(l, y): |
paul@2 | 2 | return [x for x in l if x > y] |
paul@2 | 3 | |
paul@2 | 4 | result = f([1, 2, 3], 2) |