We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1bb3a32 commit 41e0d79Copy full SHA for 41e0d79
Doc/tutorial/datastructures.rst
@@ -48,10 +48,9 @@ objects:
48
:noindex:
49
50
Remove the item at the given position in the list, and return it. If no index
51
- is specified, ``a.pop()`` removes and returns the last item in the list. (The
52
- square brackets around the *i* in the method signature denote that the parameter
53
- is optional, not that you should type square brackets at that position. You
54
- will see this notation frequently in the Python Library Reference.)
+ is specified, ``a.pop()`` removes and returns the last item in the list.
+ It raises an :exc:`IndexError` if the list is empty or the index is
+ outside the list range.
55
56
57
.. method:: list.clear()
0 commit comments