[issue38315] Provide defaultdict variant that passes key to default_factory

Mark Amery report at bugs.python.org
Mon Sep 30 10:32:32 EDT 2019


Mark Amery <markamery at btinternet.com> added the comment:

I'm aware of __missing__. However, I don't think its existence is by itself a knockdown argument against doing this. __missing__ also fulfils the need satisfied by defaultdict, yet Python still has both - and the latter is almost always more convenient to use when it's possible to do so.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue38315>
_______________________________________


More information about the Python-bugs-list mailing list