Lichen

tests/name_encoding.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(self):     3         return 1     4      5 def C_f():     6     return 2     7      8 def C__f():     9     return 3    10     11 c = C()    12 print c.f()    13 print C_f()    14 print C__f()