Message291782
| Author |
rhettinger |
| Recipients |
ezio.melotti, mrabarnett, rhettinger, umedoblock |
| Date |
2017年04月17日.04:55:21 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1492404921.65.0.998749061407.issue30086@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
What you're seeing is a feature of the grammar.
Function allow an optional trailing comma in the argument list:
>>> pow(2, 5)
32
>>> pow(2, 5,)
32
So, to create a tuple inside in an argument list, you need the extra layer of parentheses.
Sorry, this isn't a real bug. It is just a conflict resolution between use of a comma to separate arguments in a function call and use of a comma to create a tuple. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2017年04月17日 04:55:21 | rhettinger | set | recipients:
+ rhettinger, ezio.melotti, mrabarnett, umedoblock |
| 2017年04月17日 04:55:21 | rhettinger | set | messageid: <1492404921.65.0.998749061407.issue30086@psf.upfronthosting.co.za> |
| 2017年04月17日 04:55:21 | rhettinger | link | issue30086 messages |
| 2017年04月17日 04:55:21 | rhettinger | create |
|