[issue23372] defaultdict.fromkeys should accept a callable factory
SilentGhost
report at bugs.python.org
Sun Feb 1 19:27:01 CET 2015
SilentGhost added the comment:
Raymond, but Alec talks about
defaultdict.fromkeys(constants, factory=list)
as opposed to current solution
d = defaultdict.fromkeys(constants)
d.default_factory = list
for i in d:
d[i] = []
I wouldn't think that the dict.fromkeys should be affected by this issue.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23372>
_______________________________________
More information about the Python-bugs-list
mailing list