Re: [Python-Dev] pickle and copy discrepancy

2016-03-02 Thread Serhiy Storchaka
On 01.03.16 18:34, Ethan Furman wrote: On 03/01/2016 03:14 AM, Serhiy Storchaka wrote: The difference is that the copy module sets object's state before adding items and key-value pairs, but the pickle module sets object's state after adding items and key-value pairs. If append() or __setitem__(

Re: [Python-Dev] pickle and copy discrepancy

2016-03-01 Thread Ethan Furman
On 03/01/2016 03:14 AM, Serhiy Storchaka wrote: The difference is that the copy module sets object's state before adding items and key-value pairs, but the pickle module sets object's state after adding items and key-value pairs. If append() or __setitem__() depend on the state of the object, th