From: Ezio Melotti Date: Fri, 10 May 2013 16:57:04 +0000 (+0300) Subject: #17949: fix merge glitch in itemgetter signature. Patch by Martijn Pieters. X-Git-Tag: v2.7.5~5 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5302ba80e79e970873532ea54f3d0aea1e207c01;p=thirdparty%2FPython%2Fcpython.git #17949: fix merge glitch in itemgetter signature. Patch by Martijn Pieters. --- diff --git a/Doc/library/operator.rst b/Doc/library/operator.rst index 3a34978c617b..9f17e9876756 100644 --- a/Doc/library/operator.rst +++ b/Doc/library/operator.rst @@ -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: