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/2002-January/019412.html below:

[Python-Dev] Change in unpickle order in 2.2?

[Python-Dev] Change in unpickle order in 2.2? [Python-Dev] Change in unpickle order in 2.2?Greg Ward gward@python.net
Fri, 11 Jan 2002 17:08:44 -0500
[me]
> I have an application (Grouch) that has to do a lot of trickery at
> pickle-time and unpickle-time, and as a result it happens to be
> sensitive to the order of unpickling.
[...]
> Anyone got a vague, hand-waving explanation for my vague, hand-waving
> complaint?  Or should I try to come up with a test case?
> 
[Guido]
> Yes please, and post it to SourceForge.  There aren't that many
> changes in the source of pickle.py since release 2.1.  (Or are you
> using cPickle?  If so, please say so.  The two aren't 100%
> equivalent.)

False alarm.  It appears that a change in dictionary order bit me; I was
lucky that pickling Grouch objects ever worked at all.

Lesson: when the code to support pickling is too complex too understand,
it's too complex.  Hmmm, that might have broader application.  ;-)

        Greg
-- 
Greg Ward - Linux geek                                  gward@python.net
http://starship.python.net/~gward/
Time flies like an arrow; fruit flies like a banana.



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