I am learning Python and I heard all functions are objects. And classes are objects too, if I am not mistaken. Then methods within a class must be objects.
Then I wonder, within __init__
method, which is an object, are the attributes objects, too? Objects within an object?
There is a phrase 'Everything is an object'. And my impression is that anything that holds a memory space is an object. What I don't quite grasp is to what extent the phrase 'everything is an object' applies. I wonder if it applies even to variables within __init__
method.