diff -r ee924673d83a Doc/library/stdtypes.rst --- a/Doc/library/stdtypes.rst Tue Dec 24 11:04:06 2013 +0200 +++ b/Doc/library/stdtypes.rst Wed Dec 25 05:40:26 2013 +0400 @@ -1668,16 +1668,11 @@ Previously, all negative indices were truncated to zero. (6) - The :meth:`pop` method is only supported by the list and array types. The - optional argument *i* defaults to ``-1``, so that by default the last item is - removed and returned. - -(7) The :meth:`sort` and :meth:`reverse` methods modify the list in place for economy of space when sorting or reversing a large list. To remind you that they operate by side effect, they don't return the sorted or reversed list. -(8) +(7) The :meth:`sort` method takes optional arguments for controlling the comparisons. @@ -1705,13 +1700,13 @@ .. versionchanged:: 2.4 Support for *key* and *reverse* was added. -(9) +(8) Starting with Python 2.3, the :meth:`sort` method is guaranteed to be stable. A sort is stable if it guarantees not to change the relative order of elements that compare equal --- this is helpful for sorting in multiple passes (for example, sort by department, then by salary grade). -(10) +(9) .. impl-detail:: While a list is being sorted, the effect of attempting to mutate, or even