[issue5986] Avoid reversed() in Random.shuffle()

Raymond Hettinger report at bugs.python.org
Mon May 11 09:13:02 CEST 2009


Raymond Hettinger <rhettinger at users.sourceforge.net> added the comment:

-1 on this patch.  Reversed has a very low overhead.  Readability if
more important.  The current code is self-evidently correct but the
patched code is less obviously so.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5986>
_______________________________________


More information about the Python-bugs-list mailing list