A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2013-September/129067.html below:

[Python-Dev] Why not support user defined operator overloading ?

[Python-Dev] Why not support user defined operator overloading ? [Python-Dev] Why not support user defined operator overloading ?张佩佩 zhangpeipei812 at outlook.com
Sun Sep 29 14:51:37 CEST 2013
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
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4