When we create a python class, sometimes we did not define __int__()
for it. So, when creating instance, under the hood, built-in __init__
and __new__
will be called.
class ABC:
attr1=models.CharField...
attr2=models.TextField...
attr3=models.CharField...
When abc = ABC(attr1=.., attr3=.., attr2=..)
is executed, in order to find out how those initial arguments are passed in and create instances, I have been searching for a few hours to find out how does default built-in class methods __init__
and __new__
look like, but failed.
Can someone help please ?