Francesc Alted skrev:
>
> Numexpr already uses the Python parser, instead of build a new one. 
> However the bytecode emitted after the compilation process is 
> different, of course.
>
> Also, I don't see the point in requiring immutable buffers. Could you 
> develop this further?
>
If you do lacy evaluation, a function like this could fail without 
immutable buffers:

def foobar(x):
    y = a*x[:] + b
    x[0] = 0 # affects y and anything else depending on x
    return y

Immutable buffers are not required, one could document the oddity, but 
coding would be very error-prone.


S.M.


_______________________________________________
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to