Pretty odd question but is it possible to overload the meaning of certain bracket types e.g. <, >, [, ] and | in Python. For instance if I have some object instances MyObj1 and MyObj2 could I design something whereby <MyObj1 | MyObj2 > was understood as either a method call in MyObj1?
I think it probably can't/shouldn't be done but I thought I'd ask!
<and>are binary operators that require two operands, even if you overload them.