|
From: Robert K. <rk...@uc...> - 2005-08-15 22:31:05
|
Perry Greenfield wrote: > > On Aug 15, 2005, at 4:18 PM, Alan G Isaac wrote: > >> On Mon, 15 Aug 2005, Chris Barker apparently wrote: >> >>> If we could ever get Python to include additional >>> operators, we could have a Numeric array package and >>> linear algebra package all in one. both with nice >>> notation, that would be nice. >> >> Yep. > > I wonder if we shouldn't use the operator hack recently added to the > cookbook to give some sort of capability for this. It doesn't support > precedence that people would like, but it maybe useful enough. What do > people think? > > http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/384122 If it's placed in a separate module with other such pseudo-operators (|dot|, |land|, |lor|) rather than in Numeric.py itself, I'm +1 on this. It's such a beautiful hack. -- Robert Kern rk...@uc... "In the fields of hell where the grass grows high Are the graves of dreams allowed to die." -- Richard Harter |