Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #21364

Re: pickle/unpickle class which has changed

Path csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.037
X-Spam-Evidence '*H*': 0.93; '*S*': 0.00; 'migration': 0.07; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'storing': 0.09; 'am,': 0.12; 'subject:which': 0.16; 'advance': 0.17; 'wrote:': 0.18; 'header:In-Reply-To:1': 0.22; 'roll': 0.23; 'wondered': 0.23; 'django': 0.25; "i'm": 0.28; 'class': 0.29; 'example': 0.29; 'changes': 0.30; 'point,': 0.32; 'there': 0.33; 'header:User-Agent:1': 0.33; 'file': 0.34; 'header:X-Complaints- To:1': 0.34; 'subject:/': 0.34; 'to:addr:python-list': 0.35; 'data.': 0.36; 'received:org': 0.36; 'stable': 0.38; 'some': 0.38; 'format': 0.38; 'data': 0.38; 'non': 0.38; 'concepts': 0.39; 'received:de': 0.39; 'to:addr:python.org': 0.40; 'more': 0.61; 'your': 0.61; 'kind': 0.62; 'doing.': 0.73; 'otten': 0.84; 'partially': 0.84; 'pre-existing': 0.84; 'undergo': 0.84
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Gelonida N <gelonida@gmail.com>
Subject Re: pickle/unpickle class which has changed
Date Thu, 08 Mar 2012 01:16:33 +0100
References <jj508q$i1q$1@dough.gmane.org> <jj54q0$mui$1@dough.gmane.org> <jj69on$a9g$1@dough.gmane.org> <jj74qf$bre$1@dough.gmane.org>
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1
Content-Transfer-Encoding 7bit
X-Gmane-NNTP-Posting-Host unicorn.dungeon.de
User-Agent Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.27) Gecko/20120216 Lightning/1.0b2 ""
In-Reply-To <jj74qf$bre$1@dough.gmane.org>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.498.1331165808.3037.python-list@python.org> (permalink)
Lines 16
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1331165808 news.xs4all.nl 6944 [2001:888:2000:d::a6]:44871
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:21364

Show key headers only | View raw


On 03/07/2012 09:04 AM, Peter Otten wrote:
> Gelonida N wrote:

> If you know in advance that your class will undergo significant changes you 
> may also consider storing more stable data in a file format that can easily 
> be modified, e. g. json.
> 
Good point, that's what I'm partially doing. I just wondered whether
there were already some kind of pre-existing data migration tools /
concepts / helpers like for example south for Django or whether I had to
roll my own migration scheme for persistent non DB data.




Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: pickle/unpickle class which has changed Gelonida N <gelonida@gmail.com> - 2012-03-08 01:16 +0100

csiph-web