2

Is it possible to map custom character/symbol to a class method like + is mapped to __add__ and += mapped to __iadd__

I have looked into operator module but there is no option to create a custom expression to map with a method.

Harwee
  • 1,601
  • 2
  • 21
  • 35
  • Map a method with a char is easy, create a new symbol is impossible AFAIK. What are you trying to do exactly ? – polku Jun 06 '16 at 10:20

0 Answers0