[Python-checkins] cpython (2.7): #20063: Remove inaccurate/confusing statement about support of 'pop' method.

r.david.murray python-checkins at python.org
Thu Dec 26 04:27:15 CET 2013


http://hg.python.org/cpython/rev/3598805d7636
changeset:   88191:3598805d7636
branch:      2.7
parent:      88188:50d8e0edfc3f
user:        R David Murray <rdmurray at bitdance.com>
date:        Wed Dec 25 22:26:59 2013 -0500
summary:
  #20063: Remove inaccurate/confusing statement about support of 'pop' method.

Patch by Gennadiy Zlobin.

files:
  Doc/library/stdtypes.rst |  5 ++---
  1 files changed, 2 insertions(+), 3 deletions(-)


diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst
--- a/Doc/library/stdtypes.rst
+++ b/Doc/library/stdtypes.rst
@@ -1668,9 +1668,8 @@
       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

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list