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 serhiy.storchaka
Recipients p.saisathvikrao, serhiy.storchaka
Date 2020-11-30.08:45:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1606725913.77.0.841412056842.issue42510@roundup.psfhosted.org>
In-reply-to
Content
(2) is not a tuple. It is just a number 2. To make a tuple containing a single item you need to use special syntax: add a comma to that item. Parenthesis are optional.

>>> (2)
2
>>> (2,)
(2,)
>>> 2,
(2,)
History
Date User Action Args
2020-11-30 08:45:13serhiy.storchakasetrecipients: + serhiy.storchaka, p.saisathvikrao
2020-11-30 08:45:13serhiy.storchakasetmessageid: <1606725913.77.0.841412056842.issue42510@roundup.psfhosted.org>
2020-11-30 08:45:13serhiy.storchakalinkissue42510 messages
2020-11-30 08:45:13serhiy.storchakacreate