Re: [Python-Dev] Why not support user defined operator overloading ?
On 2013/9/30 8:53 Greg Ewing wrote:
It does need to know the operator's precedence and associativity, though, which means either declaring it somewhere, or having some kind of fixed rule
I suggest all user defined operator are at lowest priority. Regards peipei
Can you guys please move this discussion to python-ideas? python-dev is the wrong mailing list. Eli On Sun, Sep 29, 2013 at 6:02 PM, 张佩佩 <zhangpeipei812@outlook.com> wrote:
On 2013/9/30 8:53 Greg Ewing wrote:
It does need to know the operator's precedence and associativity, though, which means either declaring it somewhere, or having some kind of fixed rule
I suggest all user defined operator are at lowest priority.
Regards peipei _______________________________________________ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/eliben%40gmail.com
On 9/29/13 9:02 PM, 张佩佩 wrote:
On 2013/9/30 8:53 Greg Ewing wrote:
It does need to know the operator's precedence and associativity, though, which means either declaring it somewhere, or having some kind of fixed rule I suggest all user defined operator are at lowest priority.
Peipei, this is an interesting discussion, but doesn't belong on Python-Dev. The Python-Ideas mailing list is for exactly this kind of topic. --Ned.
Regards peipei _______________________________________________ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/ned%40nedbatchelder.com
participants (3)
-
Eli Bendersky -
Ned Batchelder -
张佩佩