partial(operator.add, 1)isn't such an attractive substitute for
lambda x: x+1, but that's more about
operatorthan it is about
partial()+1should be supported using operator overloading. It'd be especially nice to be able to do
This form should probably be a differently named built-in, but built-ins aren't cheap, and the no argument constructor isn't otherwise meangingful.