Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #25347
| From | Neal Becker <ndbecker2@gmail.com> |
|---|---|
| Subject | Re: [OT] Simulation Results Managment |
| Date | 2012-07-15 07:24 -0400 |
| References | <4834becc-783a-4af2-b94a-2b95c39d6be3@googlegroups.com> <mailman.2122.1342312974.4697.python-list@python.org> <16cb8524-63ad-4755-93e2-3f45e98c9af5@googlegroups.com> <87k3y5h6qp.fsf@handshake.de> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.2137.1342351513.4697.python-list@python.org> (permalink) |
Dieter Maurer wrote: > 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. Typically what I want to do is post-process (e.g. plot) results using python scripts, so using pickle is great for that.
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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