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 B import C, g |
paul@2 | 2 | |
paul@2 | 3 | class D(C): |
paul@2 | 4 | d = 3 |
paul@270 | 5 | def m(self): |
paul@270 | 6 | return self.d |
paul@2 | 7 | |
paul@2 | 8 | def f(x): |
paul@270 | 9 | return x.m() |
paul@2 | 10 | |
paul@2 | 11 | def h(x): |
paul@2 | 12 | return g(x) |