mark florisson, 24.01.2012 21:28:
> I must say though, the following would look a bit weird:
> 
>     a = b[:] = c[:, :] = d
> 
> as you always expect a kind of "cascade", e.g. you expect c[:, :] to
> be assignable to b[:], or 'a', but none of that may be true at all.

That's normal for a typed language that has type auto-coercion. I consider
this a major feature. It certainly makes the internals tricky, but when
working on the assignment code, I always tried to keep the coercions and
the eventual assignment code independent, even in the face of efficient
tuple unpacking, because I considered it the expected behaviour.

Stefan
_______________________________________________
cython-devel mailing list
[email protected]
http://mail.python.org/mailman/listinfo/cython-devel

Reply via email to