New submission from Armin Rigo: The implementation of dict.fromkeys() assumes that the new dictionary is empty. That's not the case if we tweak __new__. Attached example shows 'dictresize(mp, 0)' being called with 'mp' being dictionary of 10 items. This causes an infinite uninterruptible loop.
---------- components: Interpreter Core files: x.py messages: 174009 nosy: arigo priority: normal severity: normal status: open title: dict.fromkeys() assumes 'self' is empty versions: Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 3.4 Added file: http://bugs.python.org/file27758/x.py _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue16345> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com