[Python-3000] Default factory that uses key

hashcollision hashcollision at gmail.com
Sun Jan 6 11:01:10 CET 2008

 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

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

If not, I propose that it be added.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/python-3000/attachments/20080106/e5e3526a/attachment-0001.htm 

More information about the Python-3000 mailing list