Lichen

Annotated tests/targets.py

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