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 abarry
Recipients Eugene Yunak, abarry
Date 2015-12-05.20:46:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1449348388.19.0.571109560824.issue25811@psf.upfronthosting.co.za>
In-reply-to
Content
While I do see the desire to get your list back for such cases (I would have liked so, too, in some cases), it's inconsistent, as everything else operating in-place returns None.

Plus, having it return None helps you remember that you should keep the reference to your list around. What's more, making it return a value will often make newbies believe that they're two separate lists, and then wonder why the first one was shuffled too.

This is error-prone, and these arguments are why it returns None. It has been discussed in the past -- See http://stackoverflow.com/questions/17649875/why-does-random-shuffle-return-none which is related to your issue, and http://stackoverflow.com/questions/240178/python-list-of-lists-changes-reflected-across-sublists-unexpectedly to see what I mean by confused newbies.
History
Date User Action Args
2015-12-05 20:46:28abarrysetrecipients: + abarry, Eugene Yunak
2015-12-05 20:46:28abarrysetmessageid: <1449348388.19.0.571109560824.issue25811@psf.upfronthosting.co.za>
2015-12-05 20:46:28abarrylinkissue25811 messages
2015-12-05 20:46:28abarrycreate