Hacker News new | ask | show | jobs
by maleldil 300 days ago
Python doesn't require self to be passed. You need it in method definitions, but not calls.
1 comments

But you can do it. Actually you can call instance methods of other classes and change the class of an instance in Python like in C, but this dynamism is probably what makes it slow. Also doing that will make the program quite complicated, more so than in C, since Python also abstracts about this.