homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ncoghlan
Recipients docs@python, ncoghlan
Date 2010年09月17日.12:13:23
SpamBayes Score 8.379935e-06
Marked as misclassified No
Message-id <1284725606.32.0.188356028787.issue9886@psf.upfronthosting.co.za>
In-reply-to
Content
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 
History
Date User Action Args
2010年09月17日 12:13:26ncoghlansetrecipients: + ncoghlan, docs@python
2010年09月17日 12:13:26ncoghlansetmessageid: <1284725606.32.0.188356028787.issue9886@psf.upfronthosting.co.za>
2010年09月17日 12:13:24ncoghlanlinkissue9886 messages
2010年09月17日 12:13:23ncoghlancreate

AltStyle によって変換されたページ (->オリジナル) /