Re: annoying dictionary problem, non-existing keys

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • D'Arcy J.M. Cain

    Re: annoying dictionary problem, non-existing keys

    On Thu, 24 Apr 2008 10:24:37 +0200
    Robert Bossy <Robert.Bossy@j ouy.inra.frwrot e:
    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@druid.ne t | 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.
Working...