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


Groups > comp.lang.python > #25338

Re: [OT] Simulation Results Managment

Path csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!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.001
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'python.': 0.02; 'subject:: [': 0.03; 'objects,': 0.07; 'python': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'looked': 0.10; '(rather': 0.16; 'decode': 0.16; 'play.': 0.16; 'received:80.91.229.3': 0.16; 'received:dip0.t-ipconnect.de': 0.16; 'received:plane.gmane.org': 0.16; 'received:t-ipconnect.de': 0.16; 'retrieving': 0.16; 'stored.': 0.16; 'storing': 0.16; 'subject:] ': 0.19; 'addition,': 0.21; 'effort.': 0.22; 'proprietary': 0.23; 'non': 0.24; 'header :User-Agent:1': 0.26; 'set.': 0.27; 'header:X-Complaints-To:1': 0.28; 'pickle': 0.29; 'writes:': 0.29; 'objects': 0.29; 'classes': 0.30; '(and': 0.32; 'to:addr:python-list': 0.33; 'knowledge': 0.33; 'formats': 0.35; 'something': 0.35; 'received:org': 0.36; 'should': 0.36; 'too': 0.36; 'charset:us-ascii': 0.36; 'does': 0.37; 'rather': 0.37; 'data': 0.37; 'store': 0.38; 'object': 0.38; 'to:addr:python.org': 0.39; 'application': 0.40; 'header:Received:5': 0.40; 'easy': 0.60; 'different': 0.63; 'received:217': 0.68; 'advantages': 0.71; 'email addr:yahoo.co.uk': 0.84; 'subject:Results': 0.91
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Dieter Maurer <dieter@handshake.de>
Subject Re: [OT] Simulation Results Managment
Date Sun, 15 Jul 2012 08:35:10 +0200
References <4834becc-783a-4af2-b94a-2b95c39d6be3@googlegroups.com> <mailman.2122.1342312974.4697.python-list@python.org> <16cb8524-63ad-4755-93e2-3f45e98c9af5@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=us-ascii
X-Gmane-NNTP-Posting-Host pd9e08f17.dip0.t-ipconnect.de
User-Agent Gnus/5.1008 (Gnus v5.10.8) XEmacs/21.4.22 (linux)
Cancel-Lock sha1:y63D5PzY3AKAeUgxf1hLaQalB38=
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.2130.1342334124.4697.python-list@python.org> (permalink)
Lines 22
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1342334124 news.xs4all.nl 6985 [2001:888:2000:d::a6]:57325
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:25338

Show key headers only | View raw


moogyd@yahoo.co.uk writes:
> ...
> Does pickle have any advantages over json/yaml?

It can store and retrieve almost any Python object with almost no effort.

Up to you whether you see it as an advantage to be able to store
objects rather than (almost) pure data with a rather limited type set.


Of course, "pickle" is a proprietary Python format. Not so easy to
decode it with something else than Python. In addition, when
you store objects, the retrieving application must know the classes
of those objects -- and its knowledge should not be too different
from how those classes looked when the objects have been stored.


I like very much to work with objects (rather than with pure data).
Therefore, I use "pickle" when I know that the storing and retrieving
applications all use Python. I use pure (and restricted) data formats
when non Python applications come into play.

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


Thread

[OT] Simulation Results Managment moogyd@yahoo.co.uk - 2012-07-13 22:50 -0700
  Re: [OT] Simulation Results Managment Neal Becker <ndbecker2@gmail.com> - 2012-07-14 20:42 -0400
    Re: [OT] Simulation Results Managment moogyd@yahoo.co.uk - 2012-07-14 22:29 -0700
      Re: [OT] Simulation Results Managment Dieter Maurer <dieter@handshake.de> - 2012-07-15 08:35 +0200
        Re: Simulation Results Managment rusi <rustompmody@gmail.com> - 2012-07-15 09:20 -0700
          Re: Simulation Results Managment moogyd@yahoo.co.uk - 2012-07-17 01:20 -0700
      Re: [OT] Simulation Results Managment Neal Becker <ndbecker2@gmail.com> - 2012-07-15 07:24 -0400
    Re: [OT] Simulation Results Managment moogyd@yahoo.co.uk - 2012-07-14 22:29 -0700
  Re: Simulation Results Managment rusi <rustompmody@gmail.com> - 2012-07-14 20:25 -0700
    Re: Simulation Results Managment moogyd@yahoo.co.uk - 2012-07-14 22:26 -0700

csiph-web