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/2009-August/091223.html below:

[Python-Dev] functools.compose to chain functions together

[Python-Dev] functools.compose to chain functions together [Python-Dev] functools.compose to chain functions together"Martin v. Löwis" martin at v.loewis.de
Mon Aug 17 22:53:14 CEST 2009
> and I don't see any reason why a compose() function shouldn't do the 
> same.

I was tricked into reading it different when used with getters, i.e.

  l.sort(key=compose(attrgetter('name'),attrgetter('age')))

is too easy (IMO) to read as applying foo.name.age on all elements of
the list.

> (Aside: how do I look at the patch? The only link I have is here:
> http://mail.python.org/pipermail/patches/2007-February/021687.html
> but I can't see how to get to the patch from there.)

It's best to search for "compose" in the bug tracker:

http://bugs.python.org/issue1660179

Regards,
Martin
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