[SciPy-user] Re: Infix operators

Grant Edwards grante at visi.com
Thu Feb 17 09:30:13 CST 2005

On Thu, Feb 17, 2005 at 02:25:36AM -0800, Robert Kern wrote:
> There is a disturbingly cool hack now available at the ASPN Python 
> Cookbook site:
>   http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/384122
> A |dot| B
> A |dot| transpose(B) |dot| C
> A |div| B
> A |lsdiv| B
> x |conv| y

I _love_ it! It's brilliant! It's simple! 

It's simply brilliant and brilliantly simple!

I tried to rate it with 5-stars, but I'd have to register with
aspn, and I'm too lazy.

I wonder how one would get operator precidence to work in an
intuitive way...

Grant Edwards
grante at visi.com

More information about the SciPy-user mailing list