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 umedoblock
Recipients ezio.melotti, mrabarnett, umedoblock
Date 2017-04-17.04:43:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1492404198.27.0.60955199982.issue30086@psf.upfronthosting.co.za>
In-reply-to
Content
But I found a real bug to use a tuple with a comma.

Python3 recognized "abc", expression as tuple of one element.
But type() and len() recognize "abc", expression as "abc" string.
So now, I found a real bug.

I'll show you below sentences.

>>> "abc",
('abc',)
>>> obj = "abc",
>>> obj
('abc',)
>>> type(obj)
<class 'tuple'>
>>> len(("abc",))
1
>>> len(obj)
1

>>> type("abc",)
<class 'str'>
>>> len("abc",)
3
History
Date User Action Args
2017-04-17 04:43:18umedoblocksetrecipients: + umedoblock, ezio.melotti, mrabarnett
2017-04-17 04:43:18umedoblocksetmessageid: <1492404198.27.0.60955199982.issue30086@psf.upfronthosting.co.za>
2017-04-17 04:43:18umedoblocklinkissue30086 messages
2017-04-17 04:43:18umedoblockcreate