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 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:21rhettingersetrecipients: + rhettinger, ezio.melotti, mrabarnett, umedoblock
2017-04-17 04:55:21rhettingersetmessageid: <1492404921.65.0.998749061407.issue30086@psf.upfronthosting.co.za>
2017-04-17 04:55:21rhettingerlinkissue30086 messages
2017-04-17 04:55:21rhettingercreate