|
|
|
|
|
by nahname
5031 days ago
|
|
Another response from a different source. Having to include self as a method argument means that those are not methods, but static functions. This really means there isn't precisely methods at all and the whole OOP part of python appears hacked together. That part seriously turned me off when I encountered it. If there is a valid reason for this, it would go a long way in explaining away one of the major reasons I dislike python. Edit:
Appears to be a bug and I cannot respond to your post 'masklinn'. Can you rework the example to include the result as 42 being an instance variable instead? Thanks. |
|
This declaration makes no sense.
> This really means there isn't precisely methods at all
Of course there is:
> If there is a valid reason for this, it would go a long way in explaining away one of the major reasons I dislike python.I don't know (and don't really care) if you'll consider it "a valid reason", but here's GvR's reasoning: http://neopythonic.blogspot.be/2008/10/why-explicit-self-has...