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 martin.panter
Recipients martin.panter, rhettinger, steven.daprano
Date 2017-05-09.01:58:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1494295100.74.0.894202581563.issue30311@psf.upfronthosting.co.za>
In-reply-to
Content
It is also pointless to shuffle a list object repeating the same item, but that is no reason to add a special case. Is there a real problem with allowing dictionaries and OrderedDict? It seems to behave sensibly if you give each item a unique value:

>>> D = {i: i * 100 for i in range(5)}
>>> D
{0: 0, 1: 100, 2: 200, 3: 300, 4: 400}
>>> shuffle(D)
>>> D
{0: 300, 1: 100, 2: 200, 3: 0, 4: 400}
History
Date User Action Args
2017-05-09 01:58:20martin.pantersetrecipients: + martin.panter, rhettinger, steven.daprano
2017-05-09 01:58:20martin.pantersetmessageid: <1494295100.74.0.894202581563.issue30311@psf.upfronthosting.co.za>
2017-05-09 01:58:20martin.panterlinkissue30311 messages
2017-05-09 01:58:20martin.pantercreate