Lichen

tests/consts.py

227:3a4ba5788f0f
2016-11-23 Paul Boddie Fixed list and tuple initialisation via their initialisers. Introduced generic string representation support for sequences. Removed superfluous tuple native functions. Added element-setting and size-setting native functions for fragments. Added __setitem__ support for sequences. Added initialisation and serialisation tests for lists and tuples.
     1 def f():     2     s = "test"     3     m = s.__len__     4     n = "test".__len__     5     print m()     6     print n()     7      8 def g():     9     l = [1]    10     m = l.__len__    11     n = [1].__len__    12     print m()    13     print n()    14     15 f()    16 g()