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@320 | 1 | def f(): |
paul@320 | 2 | return 123 |
paul@320 | 3 | |
paul@320 | 4 | def g(): |
paul@320 | 5 | return 456 |
paul@320 | 6 | |
paul@320 | 7 | def h(): |
paul@320 | 8 | return f() |
paul@320 | 9 | |
paul@320 | 10 | print h() # 123 |
paul@320 | 11 | |
paul@320 | 12 | f = g |
paul@320 | 13 | |
paul@320 | 14 | print h() # 456 |