This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author malcomvx
Recipients ZackerySpytz, aeros, alexmojaki, malcomvx, serhiy.storchaka, xtreak
Date 2021-05-25.06:01:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1621922489.38.0.119521923643.issue39816@roundup.psfhosted.org>
In-reply-to
Content
Python functions can return multiple variables . These variables can be stored in variables directly. This is a unique property of Python , other programming languages such as C++ or Java do not support this by default.

The valueerror: too many values to unpack occurs during a multiple-assignment where you either don't have enough objects to assign to the variables or you have more objects to assign than variables. If for example myfunction() returned an iterable with three items instead of the expected two then you would have more objects than variables necessary to assign to.

http://net-informations.com/python/err/value.htm
History
Date User Action Args
2021-05-25 06:01:29malcomvxsetrecipients: + malcomvx, serhiy.storchaka, ZackerySpytz, xtreak, alexmojaki, aeros
2021-05-25 06:01:29malcomvxsetmessageid: <1621922489.38.0.119521923643.issue39816@roundup.psfhosted.org>
2021-05-25 06:01:29malcomvxlinkissue39816 messages
2021-05-25 06:01:29malcomvxcreate