Lichen

tests/buffer.py

587:87f11937a8e8
2017-02-14 Paul Boddie Record the context for accesses that are immediately invoked so that it may be used by the invocation operation. method-wrapper-for-context
     1 b = buffer()     2 b.append("Hello")     3 b.append(" ")     4 b.append("world")     5 b.append("!")     6 print b                 # Hello world!     7      8 b = buffer(["Hello "])     9 print repr(b)           # buffer(["Hello "])    10     11 b2 = buffer(["world!"])    12 b.append(b2)    13 print b                 # Hello world!