Lichen

tests/targets.py

934:2989aab1b4f7
7 months ago Paul Boddie 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.
     1 class C:     2     def f(x):     3         return x     4      5     def g(a, b, c):     6         return a     7      8     def h(x):     9         return x    10     11 c = C()    12 f = c.f    13 g = c.g    14 h = c.h    15     16 print g(h(12345), g(f(23456), h(34567), f(45678)), f(56789))