3 ms·
I think there is an aspect to this article that won't be understood unless you're really part of the Python community. For a while now, one of Python's selling
by pyeek 14y ago
I think there is an aspect to this article that won't be understood unless you're really part of the Python community. For a while now, one of Python's selling points to users from other languages has been "you don't need to write all that code" (most likely directed at Java), more specifically you can simply use a function rather than having to define a class just to define static methods etc. Over time, this has grown into the mantra of "You don't need a class just use a function/module". A lot of people seem to follow this viewpoint blindly, so much so that they consider it to be "Pythonic"; the way you "should" write python.
I think Armin's post is somewhat in line with the following post from the google testing blog.
http://googletesting.blogspot.com/2008/12/static-methods-are-death-to-testability.html http://googletesting.blogspot.com/2008/12/static-methods-are...