What arguments are passed to the __new__ method ?
ast
nomail at invalid.com
Wed Mar 2 04:23:56 EST 2016
"ast" <nomail at invalid.com> a écrit dans le message de news:56d5d043$0$632$426a74cc at news.free.fr...
ty for the détailed explanations.
An other question:
What is the very first method launched when an instantiation is done ?
e.g obj = MyClass(0, 5, 'xyz')
is it __call__ (from object or MyClass if overriden) ?
then _call__ launches __new__ and then __init__
This would be coherent with the language
or is it __new__ then __init__ as said on courses I read ?
More information about the Python-list
mailing list