This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author arigo
Recipients arigo
Date 2012-10-28.08:04:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1351411466.77.0.264436866601.issue16345@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2012-10-28 08:04:26arigosetrecipients: + arigo
2012-10-28 08:04:26arigosetmessageid: <1351411466.77.0.264436866601.issue16345@psf.upfronthosting.co.za>
2012-10-28 08:04:26arigolinkissue16345 messages
2012-10-28 08:04:26arigocreate