
March 30, 2020
11:12 a.m.
On Tue, Mar 31, 2020 at 5:10 AM Serhiy Storchaka <storchaka@gmail.com> wrote:
30.03.20 20:27, Chris Angelico пише:
def __iadd__(self, s): self.data.append(s)
__iadd__ should return self.
And that's what I get for quickly whipping something up and not testing it. Good catch. But you get the idea - a simple wrapper around a *list* is going to be way better than a wrapper around StringIO. ChrisA