2021-06-29 | Paul Boddie | file changeset files shortlog | Renamed the utf8string class to unicode, eliminating the unicode function. This means that the simple case of merely returning an object if it is already a Unicode object no longer occurs when using the unicode callable, but such behaviour might be better supported with more general customised instantiation functionality. |
paul@2 | 1 | from A import D, f |
paul@2 | 2 | |
paul@2 | 3 | class C: |
paul@2 | 4 | c = 1 |
paul@270 | 5 | def m(self): |
paul@270 | 6 | return self.c |
paul@2 | 7 | |
paul@2 | 8 | class E(D): |
paul@2 | 9 | e = 2 |
paul@270 | 10 | def m(self): |
paul@270 | 11 | return self.e |
paul@2 | 12 | |
paul@2 | 13 | def g(x): |
paul@2 | 14 | return f(x) |