0

Use of magic methods(__method__) in python.

difference between magic methods and.normal methods

13th May 2017, 5:36 PM
Sriram Chowdary Mellamputi
Sriram Chowdary Mellamputi - avatar
1 Resposta
+ 8
Magic methods are invoked by Python on special occasions or events during the code. Arithmetic operators, object creation and deletion, printing an onject, etc. All those times certain magic methods are executed and the best part is - you can override and overload them :) Take a look: https://code.sololearn.com/cDcyBAgWX0fA/?ref=app
13th May 2017, 7:06 PM
Kuba Siekierzyński
Kuba Siekierzyński - avatar