[issue9886] Make operator.itemgetter/attrgetter/methodcaller easier to discover

New submission from Nick Coghlan ncoghlan@gmail.com:
The observation has been made that there are some idioms related to key functions passed to various methods and functions that aren't particularly easy to discover.
One suggestion is to create a "key function" glossary entry that provides examples of standard library operations that exist primarily for use as key functions (i.e. the three functions mentioned in the issue title), as well as mentioning some of the APIs that accept key functions (e.g. sorted, list.sort, min, max). The documentation of these various could then cross link to the "key function" glossary entry to make this idioms more discoverable without needing to repeat ourselves in the documentation of every method that accepts a key function.
As per discussion on python-ideas, including the glossary entry suggestion from Terry Reedy: http://mail.python.org/pipermail/python-ideas/2010-September/008093.html
---------- assignee: docs@python components: Documentation messages: 116658 nosy: docs@python, ncoghlan priority: normal severity: normal status: open title: Make operator.itemgetter/attrgetter/methodcaller easier to discover versions: Python 3.2
_______________________________________ Python tracker report@bugs.python.org http://bugs.python.org/issue9886 _______________________________________

Changes by Daniel Stutzbach daniel@stutzbachenterprises.com:
---------- nosy: +stutzbach
_______________________________________ Python tracker report@bugs.python.org http://bugs.python.org/issue9886 _______________________________________

Changes by Raymond Hettinger rhettinger@users.sourceforge.net:
---------- assignee: docs@python -> rhettinger nosy: +rhettinger
_______________________________________ Python tracker report@bugs.python.org http://bugs.python.org/issue9886 _______________________________________

Raymond Hettinger rhettinger@users.sourceforge.net added the comment:
Fixed. See r86073.
---------- resolution: -> fixed status: open -> closed
_______________________________________ Python tracker report@bugs.python.org http://bugs.python.org/issue9886 _______________________________________
participants (3)
-
Daniel Stutzbach
-
Nick Coghlan
-
Raymond Hettinger