André Thieme <[EMAIL PROTECTED]> writes: > In Python it can't happen because + is not a function. > And what do you do if you want to pass + as a HOF?
Use a lambda. There's a library module (use "import operator") that exports functions for most of these operators. It's used sometimes but not all that often. You could think of Python as sort of a Huffman code. It tries to make the most common operations very convenient, sometimes at the expense of the less common ones. -- http://mail.python.org/mailman/listinfo/python-list