[issue6730] dict.fromkeys() should not cross reference mutable value by default

Benjamin Peterson report at bugs.python.org
Tue Aug 18 22:34:51 CEST 2009


Benjamin Peterson <benjamin at python.org> added the comment:

This behavior will never change. Use collections.defaultdict for your case.

----------
nosy: +benjamin.peterson
resolution:  -> wont fix
status: open -> closed

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6730>
_______________________________________


More information about the Python-bugs-list mailing list