OMPC Numerical Array Features

Th following table has a list of features and test of them in Python environment.



An example of assignment to an Lvalue in Python:

>> A = type('A',(),{})
>> aa = A()
>> aa
<__main__.A object at 0x02CBB5D0>

>> def koko():
        return aa

>> koko()
<__main__.A object at 0x02CBB5D0>

>> aa.lvalue = 12
>> aa.lvalue

>> koko().lvalue
12

>> koko().lvalue = 1
>> aa.lvalue
1

It is also possible to assign to slices of function calls, but it would presumably be more complicated and the slicing would have to be done twice.
Comments