[issue30084] starred tuple expression vs list display and function call

2017-04-16 Thread umedoblock
umedoblock added the comment: Sorry and thanks to Martin and Steven. I agree with your post about first my post. I understand "(*x) is equivalent to just bare *x." -- ___ Python tracker

[issue30084] starred tuple expression vs list display and function call

2017-04-16 Thread Steven D'Aprano
Steven D'Aprano added the comment: > list expression pass starred expression, the other hand > tuple expression cannot pass starred expression. You are misinterpreting what you are seeing. ( ) is not a tuple expression (except for the special case of empty brackets, which makes an empty tuple)

[issue30084] starred tuple expression vs list display and function call

2017-04-16 Thread Martin Panter
Martin Panter added the comment: This doesn’t seem like a bug to me. At least it is consistent with the rule for making a tuple when there are commas versus returning the direct expression when there are no commas: >>> x = (1); type(x) >>> x = (1,); type(x) I don’t think it is worth changin