On Fri, 27 Apr 2001, "Fredrik Lundh" firstname.lastname@example.org wrote:
time to add a __clone__ slot?
It's called __setstate__ and __getstate__, I think? Don't these have an appropriate C-level slots?
# XXX need to support copy_reg here too...
I think it's talking about having copy be the same (but without the middle man) as Unpickle.loads(Pickle.dumps(o)) (which is a perfect copy.deepcopy, if a bit wasteful.