+ 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...

22nd Sep 2016, 3:38 AM
Md Rubel Hossain
Md Rubel Hossain - avatar
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
5th Oct 2016, 9:45 AM
Krasimir Vatchinsky
Krasimir Vatchinsky - avatar