[Python-Dev] Why not support user defined operator overloading ? (original) (raw)
张佩佩 zhangpeipei812 at outlook.com
Sun Sep 29 14:51:37 CEST 2013
- Previous message: [Python-Dev] PEP 453 updated with improved rationale
- Next message: [Python-Dev] Why not support user defined operator overloading ?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hello: As far as I know, there is not a language support user defined operator overloading. Python3 can overloading belowed operators. - negated + unchanged
- minus
- add
- multiplication / division // true division % remainder ** power (Do I miss something ?)
If we can overloading these operators, why we can't overloading other operators? (like .* often used in matrix, U in set operation)
Regards! Peipei
- Previous message: [Python-Dev] PEP 453 updated with improved rationale
- Next message: [Python-Dev] Why not support user defined operator overloading ?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]