]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
#17949: fix merge glitch in itemgetter signature. Patch by Martijn Pieters.
authorEzio Melotti <ezio.melotti@gmail.com>
Fri, 10 May 2013 16:57:04 +0000 (19:57 +0300)
committerEzio Melotti <ezio.melotti@gmail.com>
Fri, 10 May 2013 16:57:04 +0000 (19:57 +0300)
Doc/library/operator.rst

index 3a34978c617b6213e05ae3e65837d32313cec1fb..9f17e987675626e692fa1b25711d21c2a56ae997 100644 (file)
@@ -523,9 +523,6 @@ expect a function argument.
           return obj
 
 
-.. function:: itemgetter(item)
-              itemgetter(*items)
-
    .. versionadded:: 2.4
 
    .. versionchanged:: 2.5
@@ -535,6 +532,9 @@ expect a function argument.
       Added support for dotted attributes.
 
 
+.. function:: itemgetter(item)
+              itemgetter(*items)
+
    Return a callable object that fetches *item* from its operand using the
    operand's :meth:`__getitem__` method.  If multiple items are specified,
    returns a tuple of lookup values.  For example: