diff --git a/Doc/library/operator.rst b/Doc/library/operator.rst --- a/Doc/library/operator.rst +++ b/Doc/library/operator.rst @@ -523,9 +523,6 @@ return obj -.. function:: itemgetter(item) - itemgetter(*items) - .. versionadded:: 2.4 .. versionchanged:: 2.5 @@ -535,6 +532,9 @@ 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: