From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Fri, 3 Aug 2018 03:03:19 +0000 (-0700) Subject: Update list.remove(x) documentation (GH-8636) X-Git-Tag: v3.7.1rc1~208 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=66ff9d270c0ff026c13667a4ca7e51ec7494fe62;p=thirdparty%2FPython%2Fcpython.git Update list.remove(x) documentation (GH-8636) Rephrase it to "It raises a `ValueError`" (cherry picked from commit bcd1d971b66f529cbd450aca438275b868031605) Co-authored-by: Lysandros Nikolaou --- diff --git a/Doc/tutorial/datastructures.rst b/Doc/tutorial/datastructures.rst index 7855ef2d2882..95dc0f98ba51 100644 --- a/Doc/tutorial/datastructures.rst +++ b/Doc/tutorial/datastructures.rst @@ -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])