Special functions __add__,__mul__ | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Special functions __add__,__mul__

Can the special functions like __add__; __mul__ change the priority of math operators?

26th Nov 2018, 4:21 PM
Bartek Sobura
Bartek Sobura - avatar
1 Answer
+ 1
This will not change the priority of math operators because __add__ is just the second form of + and other also.
26th Nov 2018, 4:40 PM
Maninder $ingh
Maninder $ingh - avatar