[Numpy-discussion] New Operators in Python
tan2
tan2tan2@gmail....
Mon Mar 26 12:18:04 CDT 2007
On 3/26/07, René Bastian <rbastian@free.fr> wrote:
>
> May be it would be possible to implement a class with
> user "definissable" (?) signs.
>
>
Yes, it is possible and is done.
See this recipe to define an Infix operator class either:
x |op| y
or:
x <<op>> y
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/384122
Eh Tan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/numpy-discussion/attachments/20070326/1857835b/attachment.html
More information about the Numpy-discussion
mailing list