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


Groups > comp.lang.python > #30190

[python-list] python application file format

Date 2012-09-26 08:49 -0400
From Benjamin Jessup <bsj@abzinc.com>
Organization ABZ, Inc.
Subject [python-list] python application file format
Newsgroups comp.lang.python
Message-ID <mailman.1427.1348664353.27098.python-list@python.org> (permalink)

Show all headers | View raw


Hello all,

What do people recommend for a file format for a python desktop 
application? Data is complex with 100s/1000s of class instances, which 
reference each other.

Write the file with struct module? (Rebuild object pointers, safe, 
compact, portable, not expandable without reserved space)

Use cPickle with a module/class whitelist? (Can't easily port, not 
entirely safe, compact enough, expandable)

Use JSON or similar? (Rebuild object pointers, portable, expandable, size?)

Any advice is greatly appreciated!

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


Thread

[python-list] python application file format Benjamin Jessup <bsj@abzinc.com> - 2012-09-26 08:49 -0400
  Re: [python-list] python application file format Ramchandra Apte <maniandram01@gmail.com> - 2012-09-26 06:01 -0700
  Re: [python-list] python application file format Ramchandra Apte <maniandram01@gmail.com> - 2012-09-26 06:01 -0700

csiph-web