[issue2817] Make Python create a tuple with one element in a clean way

2008-05-11 Thread Chester
Chester <[EMAIL PROTECTED]> added the comment: Martin I see the point now. I appologize for not having the clear head of seeing the possible damage that my feature request would make. I take my request back. __ Tracker <[EMAIL PROTECTED]>

[issue2817] Make Python create a tuple with one element in a clean way

2008-05-11 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: Just in case the previous comments aren't clear: Would you rather see py> (3+4)*5 35 or py> (3+4)*5 (7, 7, 7, 7, 7) -- nosy: +loewis __ Tracker <[EMAIL PROTECTED]>

[issue2817] Make Python create a tuple with one element in a clean way

2008-05-11 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: That's an absolute no-starter. Not the parentheses make the tuple, the commas do. The empty tuple is the exception, not the rule. -- nosy: +georg.brandl resolution: -> rejected status: open -> closed __

[issue2817] Make Python create a tuple with one element in a clean way

2008-05-11 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: But we need parentheses for grouping! -- nosy: +benjamin.peterson __ Tracker <[EMAIL PROTECTED]> __ ___

[issue2817] Make Python create a tuple with one element in a clean way

2008-05-11 Thread Chester
New submission from Chester <[EMAIL PROTECTED]>: To create a tuple with one element, you need to do this: >>> my_tuple = (1,)# Note the trailing comma after the value 1 >>> type(my_tuple) But if you do this >>> my_tuple = (1) >>> type(my_tuple) you don't get a tuple. I thought that jus