[issue14542] reverse() doesn't reverse sort correctly

Eric V. Smith report at bugs.python.org
Tue Apr 10 23:45:48 CEST 2012


Eric V. Smith <eric at trueblade.com> added the comment:

list.reverse() does not reverse a list, it reverses its current values.

>>> help([].reverse)
Help on built-in function reverse:

reverse(...)
    L.reverse() -- reverse *IN PLACE*

>>>

----------
nosy: +eric.smith
resolution:  -> invalid
stage:  -> committed/rejected
status: open -> closed

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


More information about the Python-bugs-list mailing list