Lichen

Annotated tests/buffer.py

585:65cadf3264bc
2017-02-13 Paul Boddie Fixed str_add invocations for Unicode objects. attr-strvalue-without-size
paul@220 1
b = buffer()
paul@220 2
b.append("Hello")
paul@220 3
b.append(" ")
paul@220 4
b.append("world")
paul@220 5
b.append("!")
paul@259 6
print b                 # Hello world!
paul@220 7
paul@220 8
b = buffer(["Hello "])
paul@259 9
print repr(b)           # buffer(["Hello "])
paul@259 10
paul@220 11
b2 = buffer(["world!"])
paul@220 12
b.append(b2)
paul@259 13
print b                 # Hello world!