can I overload operators like "=>", "->" or something like that?

Jacob MacDonald jaccarmac at gmail.com
Thu Apr 19 15:54:13 EDT 2012


On Thursday, April 19, 2012 12:28:50 PM UTC-7, dmitrey wrote:
> hi all,
> can I somehow overload operators like "=>", "->" or something like
> that? (I'm searching for appropriate overload for logical implication
> "if a then b")
> Thank you in advance, D.

I don't believe that you could overload those particular operators, since to my knowledge they do not exist in Python to begin with.



More information about the Python-list mailing list