A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2016-March/143445.html below:

[Python-Dev] pickle and copy discrepancy

[Python-Dev] pickle and copy discrepancy [Python-Dev] pickle and copy discrepancyEthan Furman ethan at stoneleaf.us
Tue Mar 1 11:34:09 EST 2016
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, the pickling is incompatible with the
> copying.

Aren't there tests to ensure the unpickled/copied object are identical 
to the original object?

Under which circumstances would they be different?

--
~Ethan~
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4