Message5854
Allow me to point out that overriding of __radd__ within my class has the desired behavior on other classes such as PyList
In the example below 'MyJava' is actually an integer array of rank 1 (called Int1d).
It allows, like in any scripting language to do operations like:
x+1 == 1+x == x+y == y+x == x+z == z+x
where e.g. x=Int1d([1,2]), y=array([1,1],'i'), z=[1,1]
Suddenly blocking this mechanism on only a fraction (PyArray) of your classes alone does not make sense, and I consider that a bug. |
|
Date |
User |
Action |
Args |
2010-06-29 07:27:17 | babelmania | set | messageid: <1277796437.16.0.262149247264.issue1622@psf.upfronthosting.co.za> |
2010-06-29 07:27:17 | babelmania | set | recipients:
+ babelmania, akong |
2010-06-29 07:27:17 | babelmania | link | issue1622 messages |
2010-06-29 07:27:16 | babelmania | create | |
|