Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #10633
| References | <CAJ+TeoevaLW+PxixdLj9+tDkMZcGoxnp51K3PKWHQx4bbZt4Mg@mail.gmail.com> <mailman.1684.1312081856.1164.python-list@python.org> <MPG.289f25a5bb16d26998983f@news.individual.de> <4E35A0BB.5010201@gmail.com> |
|---|---|
| Date | 2011-07-31 12:51 -0700 |
| Subject | Re: Deeply nested dictionaries - should I look into a database or am I just doing it wrong? |
| From | Chris Rebert <clp2@rebertia.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1699.1312141884.1164.python-list@python.org> (permalink) |
On Sun, Jul 31, 2011 at 11:36 AM, Andrew Berg <bahamutzero8825@gmail.com> wrote: > On 2011.07.31 02:41 AM, Thorsten Kampe wrote: <snip> >> Another approach would be named tuples instead of dictionaries or flat >> SQL tables. > What would the advantage of that be? Less punctuation noise: QueueItem.x264.avs.filter.fft3d.ffte vs. QueueItem.x264['avs']['filter']['fft3d']['ffte'] It would also make clear that your sets of "keys" are static (unlike typical dictionary usage). Cheers, Chris -- http://rebertia.com
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: Deeply nested dictionaries - should I look into a database or am I just doing it wrong? Andrew Berg <bahamutzero8825@gmail.com> - 2011-07-30 22:10 -0500
Re: Deeply nested dictionaries - should I look into a database or am I just doing it wrong? Thorsten Kampe <thorsten@thorstenkampe.de> - 2011-07-31 09:41 +0200
Re: Deeply nested dictionaries - should I look into a database or am I just doing it wrong? Andrew Berg <bahamutzero8825@gmail.com> - 2011-07-31 13:36 -0500
Re: Deeply nested dictionaries - should I look into a database or am I just doing it wrong? Thorsten Kampe <thorsten@thorstenkampe.de> - 2011-07-31 22:04 +0200
Re: Deeply nested dictionaries - should I look into a database or am I just doing it wrong? Philip Semanchuk <philip@semanchuk.com> - 2011-07-31 16:53 -0400
Re: Deeply nested dictionaries - should I look into a database or am I just doing it wrong? Andrew Berg <bahamutzero8825@gmail.com> - 2011-07-31 17:26 -0500
Re: Deeply nested dictionaries - should I look into a database or am I just doing it wrong? Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2011-08-01 18:29 +1200
Re: Deeply nested dictionaries - should I look into a database or am I just doing it wrong? Chris Rebert <clp2@rebertia.com> - 2011-07-31 12:51 -0700
Re: Deeply nested dictionaries - should I look into a database or am I just doing it wrong? Andrew Berg <bahamutzero8825@gmail.com> - 2011-07-31 15:34 -0500
Re: Deeply nested dictionaries - should I look into a database or am I just doing it wrong? BlueBird <phil@freehackers.org> - 2011-08-02 02:17 -0700
csiph-web