The default factory that collections.defaultdict takes cannot use key. Is
there a way to have the default factory take the key into consideration? For
example

d = collections.defaultdict(lambda title: BookShelf(title))

If not, I propose that it be added.
_______________________________________________
Python-3000 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to