I have a main thread which needs to flush a buffer to disk periodically, so every time I create a new Thread to run json.dump(buffer). But immediately after this I need to clear the buffer, so is there "move semantics" in Python which lets me do this without having to make a deep copy of it? Continue reading...