HUANG YUWEI wrote:
the number of return variables could be many. Then it would look like
```
res0, res1, res2, res3, res4, res5, res6, res7, ..., resN = high_level_function()

At that point you're better off returning an object with named
attributes, such as a namedtuple or a class designed for the
purpose.

--
Greg
_______________________________________________
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/[email protected]/message/2JOWUVLAH5SKE3ZOIAVA6R7SG2RKJQH2/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to