S
sebastien.lannez
Thanks for your quick response.
Using Python as an algebraic parser for
symbolic mathematical equation and I need
that the 'in' operator returns an object based
on its two arguments.
That is why I need to overload it.
Does it means that when overloading an operator, python just
wrap the call to the method and keep control of the returned
values ??? Is there a way to bypass this wrapping ???
Not sure what you're trying to achieve,
Using Python as an algebraic parser for
symbolic mathematical equation and I need
that the 'in' operator returns an object based
on its two arguments.
but the semantics of the "in" operator
make it return a boolean value.
That is why I need to overload it.
The string "yop" evaluates to the boolean
value True, as it is not empty.
Does it means that when overloading an operator, python just
wrap the call to the method and keep control of the returned
values ??? Is there a way to bypass this wrapping ???