Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #30190 > unrolled thread
| Started by | Benjamin Jessup <bsj@abzinc.com> |
|---|---|
| First post | 2012-09-26 08:49 -0400 |
| Last post | 2012-09-26 06:01 -0700 |
| Articles | 3 — 2 participants |
Back to article view | Back to comp.lang.python
[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
| From | Benjamin Jessup <bsj@abzinc.com> |
|---|---|
| Date | 2012-09-26 08:49 -0400 |
| Subject | [python-list] python application file format |
| Message-ID | <mailman.1427.1348664353.27098.python-list@python.org> |
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!
[toc] | [next] | [standalone]
| From | Ramchandra Apte <maniandram01@gmail.com> |
|---|---|
| Date | 2012-09-26 06:01 -0700 |
| Message-ID | <3af2cb43-0b12-4f98-8d29-895f173317d5@googlegroups.com> |
| In reply to | #30190 |
On Wednesday, 26 September 2012 18:29:14 UTC+5:30, Benjamin Jessup wrote: > 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! JSON is generally used for configuration.
[toc] | [prev] | [next] | [standalone]
| From | Ramchandra Apte <maniandram01@gmail.com> |
|---|---|
| Date | 2012-09-26 06:01 -0700 |
| Message-ID | <mailman.1428.1348664498.27098.python-list@python.org> |
| In reply to | #30190 |
On Wednesday, 26 September 2012 18:29:14 UTC+5:30, Benjamin Jessup wrote: > 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! JSON is generally used for configuration.
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web