Visitar URL original
Fix small typos in introduction and datastructures of tutorial by DimitrisJim · Pull Request #272 · python/cpython · GitHub
Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Use iterable instead of L in the doc for list.extend
  • Loading branch information
DimitrisJim committed Feb 24, 2017
commit 137a206218e133b5d4d6d3f5b0617ccc356dd855
6 changes: 3 additions & 3 deletions Doc/tutorial/datastructures.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ objects:
Add an item to the end of the list. Equivalent to ``a[len(a):] = [x]``.


.. method:: list.extend(L)
.. method:: list.extend(iterable)
:noindex:

Extend the list by appending all the items from the iterable *L*. Equivalent to
``a[len(a):] = L``.
Extend the list by appending all the items from the iterable. Equivalent to
``a[len(a):] = iterable``.


.. method:: list.insert(i, x)
Expand Down