... but it's buggy. It depends on the evaluation order of operands and we get at some point binops between an Array and an ArrayLabel, which return False (courtesy of Array._binop which does so for unknown types -- btw, this behavior was intended for == and is really surprising for other operators)
Here is a bit of code I did for Geert:
But it does not support ambiguous labels. Then, for the fun of it, I thought it wouldn't be too hard to implement that and I did the following code:
... but it's buggy. It depends on the evaluation order of operands and we get at some point binops between an Array and an ArrayLabel, which return False (courtesy of Array._binop which does so for unknown types -- btw, this behavior was intended for == and is really surprising for other operators)