Why are they called magic methods? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

Why are they called magic methods?

5th Aug 2018, 10:30 AM
B.D
B.D - avatar
3 Answers
+ 4
Because they add functionality in our code and start and end with double underscore.
5th Aug 2018, 4:41 PM
Maninder $ingh
Maninder $ingh - avatar
+ 1
Because it's catchy I'd say. ;-)
5th Aug 2018, 12:40 PM
HonFu
HonFu - avatar
0
What methods do you refer to?
5th Aug 2018, 10:42 AM
Amir Galanty
Amir Galanty - avatar