A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2003-October/038658.html below:

[Python-Dev] decorate-sort-undecorate

[Python-Dev] decorate-sort-undecorate [Python-Dev] decorate-sort-undecorateSkip Montanaro skip at pobox.com
Mon Oct 13 17:22:59 EDT 2003
    >> def sort(self, cmpfunc=None, decorator=None):

    Paul> I like it! But "decorator" isn't a good name - it describes how
    Paul> it's being done, rather than what is being done. How about "key"?

How about keyfunc? "keyfunc=str.lower" reads to me more like "generate sort
keys using str.lower".  "key" doesn't suggest (to me, at least) its value
should be a function.

Skip

More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4