Kyle Lahnakoski wrote:
Here is a half baked idea:

class A:
    def assign(self, other):
        # whatever this means

setattr(A, "<==", A.assign)

Some things that would need to be addressed to fully bake this idea:

* What determines the precedence of these new operators?

* How to distinguish left and right operator methods?

--
Greg
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/N6VIEGCRGJ5KRG2GQW2TA2KF3B5TBOEV/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to