summaryrefslogtreecommitdiffstats
path: root/Doc/tutorial
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2014-05-23 04:34:38 (GMT)
committerTerry Jan Reedy <tjreedy@udel.edu>2014-05-23 04:34:38 (GMT)
commita52ecc0a02cbc2512c928ca97e2573072ab39655 (patch)
treefb553551762af16bd14791c88479ae49765c96e4 /Doc/tutorial
parenta3d58ae2f2bf586ed059cf3449c3075fde6135a4 (diff)
parente17de091012eb928c5734856eeaf2bb8f99e40c1 (diff)
downloadcpython-a52ecc0a02cbc2512c928ca97e2573072ab39655.zip
cpython-a52ecc0a02cbc2512c928ca97e2573072ab39655.tar.gz
cpython-a52ecc0a02cbc2512c928ca97e2573072ab39655.tar.bz2
Merge with 3.4
Diffstat (limited to 'Doc/tutorial')
-rw-r--r--Doc/tutorial/datastructures.rst9
1 files changed, 7 insertions, 2 deletions
diff --git a/Doc/tutorial/datastructures.rst b/Doc/tutorial/datastructures.rst
index 24d2d2e..f2b66f7 100644
--- a/Doc/tutorial/datastructures.rst
+++ b/Doc/tutorial/datastructures.rst
@@ -111,10 +111,15 @@ An example that uses most of the list methods::
>>> a.sort()
>>> a
[-1, 1, 66.25, 333, 333, 1234.5]
+ >>> a.pop()
+ 1234.5
+ >>> a
+ [-1, 1, 66.25, 333, 333]
You might have noticed that methods like ``insert``, ``remove`` or ``sort`` that
-modify the list have no return value printed -- they return ``None``. [1]_ This
-is a design principle for all mutable data structures in Python.
+only modify the list have no return value printed -- they return the default
+``None``. [1]_ This is a design principle for all mutable data structures in
+Python.
.. _tut-lists-as-stacks: