This post originated from an RSS feed registered with Python Buzz
by maxim khesin.
Original Post: my first recipe
Feed Title: python and the web
Feed URL: http://feeds.feedburner.com/PythonAndTheWeb
Feed Description: blog dedicated to python and the networks we live in
I think it's a bit funny that I was first introduced to HOP('higher-order programming') via C++. The folks at Boost.org have done quite a bit of work in this area. Their first HOP library was (ithinks) Boost.Bind, which implemnts partial function application/currying using 'placeholders' (see site for details). I cannot imagine living without it in C++. Since Python does not have PFP I took a shot at porting Boost.Bind to Python, which ended up not being that hard, due to the abundance of reflection and hooks that are available in Python. Results here:
I wonder if this is the first time an HOP library was ported FROM C++ :).
PS. Tonight's Google Bounty: I just discivered that a version of 'partial function application' has been submitted as PEP 309 by Peter is coming to Python 2.5 near you! Thanks, Peter!