Author steven.daprano
Recipients namtt, rhettinger, steven.daprano
Date 2017-05-20.05:51:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
I think this should be closed. For backwards compatibility, the defaultdict default_factory function must remain as it is. There is lots of code that uses something like `int` or `list` as the factory, and if the missing key was to be passed, the code would break.

As Raymond says, if you need the key passed to your factory, you can subclass dict and give it a __missing__ method.
Date User Action Args
2017-05-20 05:51:45steven.dapranosetrecipients: + steven.daprano, rhettinger, namtt
2017-05-20 05:51:45steven.dapranosetmessageid: <>
2017-05-20 05:51:45steven.dapranolinkissue30408 messages
2017-05-20 05:51:45steven.dapranocreate