How to check for multiple values return in Python? -
i need introspection in numpy/scipy. while relatively easy find info on how docstring , arguments, not able concerning how info on returned values. more specifically, find functions return multiple values, or equivalently (more or less) tuples. way it?
there no way can find out python in general. answer not constant.
def complicated(i): if == 1: return 0 elif == 2: return (0,1) elif == 3: return [0,1,2] elif program_halts(i): return {} else return "nope"
what worse, if know inputs, can't tell result without solving halting problem.
your chance read documentation.
Comments
Post a Comment