Tim Peters added the comment:

Generally speaking, trying to shuffle a dict D already blows up, unless D's 
keys are the integers range(len(D)).  In that case, D is indistinguishable from 
a list in the sense that both map range(N) to values via __getitem__.  
`shuffle()` does no type checks whatsoever now, and will shuffle any object 
that maps range(N) to values.

Fine by me the way it is.

----------
nosy: +tim.peters

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue30311>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to