]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Update list.remove(x) documentation (GH-8636)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 3 Aug 2018 03:03:19 +0000 (20:03 -0700)
committerGitHub <noreply@github.com>
Fri, 3 Aug 2018 03:03:19 +0000 (20:03 -0700)
Rephrase it to "It raises a `ValueError`"
(cherry picked from commit bcd1d971b66f529cbd450aca438275b868031605)

Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
Doc/tutorial/datastructures.rst

index 7855ef2d2882874e1960a2cdcbe7379040640896..95dc0f98ba513414af69b8d29838da5df7b36b17 100644 (file)
@@ -40,8 +40,8 @@ objects:
 .. method:: list.remove(x)
    :noindex:
 
-   Remove the first item from the list whose value is equal to *x*.  It is an error if
-   there is no such item.
+   Remove the first item from the list whose value is equal to *x*.  It raises a
+   ``ValueError`` if there is no such item.
 
 
 .. method:: list.pop([i])