From: R David Murray Date: Thu, 26 Dec 2013 03:26:59 +0000 (-0500) Subject: #20063: Remove inaccurate/confusing statement about support of 'pop' method. X-Git-Tag: v2.7.8~164 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dfd21d35387aa5feb636772485c70bf2bbffdc64;p=python #20063: Remove inaccurate/confusing statement about support of 'pop' method. Patch by Gennadiy Zlobin. --- diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst index accf382481..442a214472 100644 --- a/Doc/library/stdtypes.rst +++ b/Doc/library/stdtypes.rst @@ -1668,9 +1668,8 @@ Notes: 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. + The :meth:`pop` method's 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