◐ Shell
clean mode source ↗

Message 181266 - Python tracker

> For the record, I tried the Connection approach and here is what I ended up with.

I don't really like the API.
Having to pass an external lock is IMO a bad idea, it should be a
private instance field.
Also, for consistency we'd probably need send_bytes/recv_bytes.