Discussion: new operators for numerical computation
John Lull
lull at acm.org
Thu Jul 20 23:10:30 EDT 2000
Jonathan Epstein <Jonathan_Epstein at nih.gov> wrote (with possible
deletions):
> The special constituencies can even be addressed using two-character
> sequences within the parens if necessary. E.g., for Kroneker use
> A(.K)B
> I'm not actually proposing this specific syntax because it's so horrible
> looking and potentially hard to parse, but some variant on this might do
> the trick.
This shouldn't be hard to parse. In fact, it might be a reasonable
foundation for class-specific operators:
A(.opName)B
would get executed as either
A.__opName__(B)
or
B.__ropName__(A)
or raise an exception as appropriate.
Regards,
John
More information about the Python-list
mailing list