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 | from A import D, f |
paul@2 | 2 | |
paul@2 | 3 | class C: |
paul@2 | 4 | c = 1 |
paul@2 | 5 | |
paul@2 | 6 | class E(D): |
paul@2 | 7 | e = 2 |
paul@2 | 8 | |
paul@2 | 9 | def g(x): |
paul@2 | 10 | return f(x) |