[New-bugs-announce] [issue24901] single element tuple 's ending comma is different that without comma

shiva prasanth report at bugs.python.org
Thu Aug 20 12:42:09 CEST 2015


New submission from shiva prasanth:

Python 2.7.9 (default, Apr  2 2015, 15:33:21) 
[GCC 4.9.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> (2,)==(2)
False
>>> (2,3,)==(2,3)
True
>>> (2,3)==(2,3,)
True
>>> s=(2,)
>>> s2=(2)
>>> s==s2
False
>>>

----------
messages: 248880
nosy: shivaprasanth
priority: normal
severity: normal
status: open
title: single element tuple 's ending comma is different that without comma
versions: Python 2.7, Python 3.2, Python 3.3

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24901>
_______________________________________


More information about the New-bugs-announce mailing list