Python Professional — Hard
Key points
- __new__ creates or returns an instance
- __init__ initializes attributes
- __new__ is called before __init__
- __init__ is only called if the instance is of the class
Ready to go further?
Related questions
Python Professional — Hard
Key points
Ready to go further?
Related questions