PEP 318: Can't we all just get along?
Paul Morrow
pm_mon at yahoo.com
Fri Aug 20 05:45:11 EDT 2004
Roy Smith wrote:
>
> I never quite understood the point of static methods inside classes.
> When would you ever need to do that, as opposed to just a function in a
> module? In Java's "everything is part of a class" philosophy, it makes
> sense, but in Python?
It gives us another means of managing namespaces. Rather than having to
create a top-level function in the current (or some other) module, we
can group it with other related functions as a method in a class.
More information about the Python-list
mailing list