I would like to create a function that is only used as a function inside another function in the same class. My main question is, what would be the best OOP way to create this function ? Should I go as far as to use any type of decorator ; @statimethod etc
For info, it will never be used outside the class, it doesn't need any class variable used inside (so self might not be needed if we want to go with @staticmethod)
class Awesomeness(object):
def method(self, *args):
self._another_method(...)
pass
def _another_method(self, *args):
pass