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/2005-August/055496.html below:

[Python-Dev] PEP 309: Partial method application

[Python-Dev] PEP 309: Partial method application [Python-Dev] PEP 309: Partial method applicationRaymond Hettinger raymond.hettinger at verizon.net
Thu Aug 18 18:00:06 CEST 2005
[Ian Bicking]
> I think partial() misses an important use case of method getting, for
> instance:
> 
>      lst = ['A', 'b', 'C']
>      lst.sort(key=partialmethod('lower'))

We've already got one:

       lst.sort(key=operator.attrgetter('lower'))


Raymond

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