Eric Smith <e...@trueblade.com> added the comment:

Or use a collections.defaultdict, which has a factory function as a constructor 
argument. It sort of depends on what you're trying to do.

----------
nosy: +eric.smith

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue10930>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to