function operators

Fernando Pérez fperez528 at yahoo.com
Sun Nov 25 14:33:17 EST 2001


James A. H. Skillen wrote:

> Has anyone ever wished that Python had operators defined on functions?
> For example, suppose you want the function f(x) = cos(x) + sin(x).

[snip] 

> Does this make sense, or have I been doing too much mathematics? ;-)

A lot of sense! This would be absolutely lovely, and would make Python's 
functional abilities really shine.

Write a PEP!

Cheers,

f





More information about the Python-list mailing list