+ 1
how can i use __new__ magic method.....??
if i wanna make a instance of a particular class without any attribute, i mean i wanna add behavior of this instance later... how can i do that...?? if i use only self argument in __ init__ it shows an error...
1 Respuesta
0
Hi, I think you can find all the information you need here, You need to understand better the core of what is and how to use magic method first:
http://www.rafekettler.com/magicmethods.html
http://www.diveintopython3.net/special-method-names.html