I have a function that either returns a tuple or None. How is the Caller supposed to handle that condition?
def nontest():
return None
x,y = nontest()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: 'NoneType' object is not iterable
(None, None)None? What shouldxbe in that case? What shouldybe in that case? Do you even really want to continue with the current calculation that usesxandy?