New submission from STINNER Victor <victor.stin...@haypocalc.com>:

reversed(xrange(1, len(x))) is inefficient, xrange(len(x) - 1, 0, -1) 
gives exactly the same sequence but avoid reversed(). See attached 
patch. Don't expect amazing speedup.

----------
components: Library (Lib)
files: shuffle.patch
keywords: patch
messages: 87531
nosy: haypo
severity: normal
status: open
title: Avoid reversed() in Random.shuffle()
Added file: http://bugs.python.org/file13947/shuffle.patch

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

Reply via email to