Is there a way of creating a method with this signature?
def(self, cls, arg1, arg2, arg3):
self.instance = cls.some_class_default
I'm aware of instance methods:
def(self, arg1, arg2):
self.instance = some_default_literal_value
and class methods:
@classmethod
def(cls, arg1, arg2)
cls.some_class_default = arg1
But is there a conventional way to mark a method that uses both instance variables and class variables?
Even within a method, self.__class__.some_class_default feels cumbersome, so such a method feels like it could be valuable.
clswithtype(self); I don't seen any benefit to having a specific method that automatically gets passed both. The main point of a class method is not so much that the class is passed automatically as the fact that the class is passed whether you invoke the method from the class or from an instance of the class.