Is it possible to return two separate object in one 'return' statement? I have tried below but I get 'tuple' object.
recipient, user = authenticate(mobile=mobile, email=email)
Function:
def authenticate(self, mobile=None, email=None):
user = Recipient.objects.recipient_friend_match(mobile, email)
return user[0], user
x, y = function().tuple, which you can unpack at the call site (i.e. what you're doing withrecipient, user).user[0]separately when it's already included inuser?