annoying dictionary problem, non-existing keys
D'Arcy J.M. Cain
darcy at druid.net
Thu Apr 24 06:39:23 EDT 2008
On Thu, 24 Apr 2008 10:24:37 +0200
Robert Bossy <Robert.Bossy at jouy.inra.fr> wrote:
> Way 2: make conf a defaultdict instead of a dict, the documentation is
> there:
> http://docs.python.org/lib/defaultdict-objects.html
Only for 2.5 and up though.
--
D'Arcy J.M. Cain <darcy at druid.net> | Democracy is three wolves
http://www.druid.net/darcy/ | and a sheep voting on
+1 416 425 1212 (DoD#0082) (eNTP) | what's for dinner.
More information about the Python-list
mailing list