Discussion: new operators for numerical computation

Rainer Deyke root at rainerdeyke.com
Fri Jul 21 02:22:51 EDT 2000


"John Lull" <lull at acm.org> wrote in message
news:ueefns037mjarv63dqpbh52mmr1k6vvaop at 4ax.com...
> 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.

This would allow constructs such as:

A(.init)B

In other words, it would turn all existing __magic__ functions into
operators.  Not a good idea IMO.


--
Rainer Deyke (root at rainerdeyke.com)
Shareware action/role-playing games      -      http://rainerdeyke.com
"In ihren Reihen zu stehen heisst unter Feinden zu kaempfen" - Abigor





More information about the Python-list mailing list