0
What is magic method of creating instance?
14 Respuestas
+ 6
__init__
+ 2
__init__
+ 1
When creating an instance, the magic method use is __new__. But to instantiate the object, you need to use __init__
0
thanks for the guidance
0
good answer
0
@nemcaninz: that's double underscore, not single. That's also why they are called dunder methods
0
__init__
0
https://youtu.be/Tg4Du8eUFw8
full python video tutorial link in youtub
0
__init__
0
__init__
0
What is the magic method for creating an instance?
__init__
0
What is the magic method for creating an instance?
answer : __init__
- 1
To instantiate the object you have to use _new_. To initiate the object you have to use _init_
- 3
_new_