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 Camion
Recipients Camion, eric.smith, serhiy.storchaka, steven.daprano
Date 2017-12-10.10:00:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1512900027.91.0.213398074469.issue32259@psf.upfronthosting.co.za>
In-reply-to
Content
Serhiy, I think I got a better understanding of what is happening. It is well described by the following example :

>>> a, b = 1,

Traceback (most recent call last):
  File "<pyshell#40>", line 1, in <module>
    a, b = 1,
ValueError: need more than 1 value to unpack
>>> a, b = 1

Traceback (most recent call last):
  File "<pyshell#41>", line 1, in <module>
    a, b = 1
TypeError: 'int' object is not iterable

Again, the message might be correct, but in this case, the combination between the message and the ambiguous syntax, makes it lack from explicitness.

Understanding that, I suggest to simply add "(expected 'tuple')" at the end of the message.
ex : TypeError: 'int' object is not iterable (expected 'tuple')
History
Date User Action Args
2017-12-10 10:00:27Camionsetrecipients: + Camion, eric.smith, steven.daprano, serhiy.storchaka
2017-12-10 10:00:27Camionsetmessageid: <1512900027.91.0.213398074469.issue32259@psf.upfronthosting.co.za>
2017-12-10 10:00:27Camionlinkissue32259 messages
2017-12-10 10:00:27Camioncreate