Not Possible to Reference self in a Method Declaration?
- by phasetwenty
I wanted to write a method with an argument that defaults to a member variable like so:
def method(self, arg1=0, arg2=self.member):
Apparently this is not allowed. Should I write it a different way, or perhaps use a value of arg2 to signal when to use a different value?