2017-02-19 | Paul Boddie | file changeset files shortlog | Fixed the context test and set operation to replace the local context with any applicable attribute context. Added a test of method rebinding that requires this fix. | method-wrapper-for-context |
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! |