I want to write a method like this:
def method(self, long_api_parameter_name=None):
if long_api_parameter_name is None:
long_api_parameter_name = self.DEFAULT_X
return self.another_method(long_api_parameter_name)
However I have been advised not to reassign to a method parameter. Is there any [semi]official recommendation or at least a consensus within the community?