From 5302ba80e79e970873532ea54f3d0aea1e207c01 Mon Sep 17 00:00:00 2001 From: Ezio Melotti Date: Fri, 10 May 2013 19:57:04 +0300 Subject: #17949: fix merge glitch in itemgetter signature. Patch by Martijn Pieters. --- Doc/library/operator.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Doc/library/operator.rst b/Doc/library/operator.rst index 3a34978..9f17e98 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: -- cgit v0.12