Что лучше для методов, которым не нужна никакая передаваемая информация (экземпляр объекта или класс), потому что, например, они просто выполняют простое преобразование. @staticmethod или метод ?
class Foo(object):
def __init__(self, trees):
self.money = Foo.trees2money(trees)
@staticmethod
def trees2money(trees):
return trees * 1.337
class Quu(object):
def __init__(self, trees):
self.money = self.trees2money(trees)
def trees2money(self, trees):
return trees * 1.337