mirror of
https://github.com/python/cpython.git
synced 2025-12-05 00:52:25 +00:00
Merge with 3.4
This commit is contained in:
commit
a52ecc0a02
2 changed files with 8 additions and 2 deletions
|
|
@ -111,10 +111,15 @@ An example that uses most of the list methods::
|
||||||
>>> a.sort()
|
>>> a.sort()
|
||||||
>>> a
|
>>> a
|
||||||
[-1, 1, 66.25, 333, 333, 1234.5]
|
[-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
|
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
|
only modify the list have no return value printed -- they return the default
|
||||||
is a design principle for all mutable data structures in Python.
|
``None``. [1]_ This is a design principle for all mutable data structures in
|
||||||
|
Python.
|
||||||
|
|
||||||
|
|
||||||
.. _tut-lists-as-stacks:
|
.. _tut-lists-as-stacks:
|
||||||
|
|
|
||||||
|
|
@ -508,6 +508,7 @@ Barry Hantman
|
||||||
Lynda Hardman
|
Lynda Hardman
|
||||||
Derek Harland
|
Derek Harland
|
||||||
Jason Harper
|
Jason Harper
|
||||||
|
David Harrigan
|
||||||
Brian Harring
|
Brian Harring
|
||||||
Jonathan Hartley
|
Jonathan Hartley
|
||||||
Travis B. Hartwell
|
Travis B. Hartwell
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue