Skip to content

DefaultDict could front-end the native 2.5 version defaultdict #12

@GoogleCodeExporter

Description

@GoogleCodeExporter
The collections.defaultdict class:

http://docs.python.org/library/collections.html#collections.defaultdict

could be used for Python 2.5+ rather than the method in utils.py:228

import collections
try: 
   collections.defaultdict ## set builtin introduced in 2.5
except NameError:
  class DefaultDict(dict):
  .
  .
  .




Original issue reported on code.google.com by arocki...@gmail.com on 15 Sep 2009 at 3:00

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions