Kyle Lahnakoski wrote:
Here is a half baked idea:class A: def assign(self, other): # whatever this meanssetattr(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 -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/[email protected]/message/N6VIEGCRGJ5KRG2GQW2TA2KF3B5TBOEV/ Code of Conduct: http://python.org/psf/codeofconduct/
