[issue16345] dict.fromkeys() assumes 'self' is empty

Benjamin Peterson report at bugs.python.org
Mon Oct 29 17:44:11 CET 2012


Benjamin Peterson added the comment:

I wonder what the semantics should be. I would like to just clear the dictionary that is returned from __new__ but you're also allowed to return custom classes from __new__ which we might not know how to clear.

----------

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


More information about the Python-bugs-list mailing list