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 sean_gillespie
Recipients
Date 2007-03-16.14:42:20
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
This behavior seems as intended.  According to the docs (http://docs.python.org/ref/calls.html):

A trailing comma may be present after the positional and keyword arguments but does not affect the semantics. 
[snip]
Formal parameters using the syntax "*identifier" or "**identifier" cannot be used as positional argument slots or as keyword argument names.

I'm having trouble with what this actually means.  However, the relevant section in the Grammar looks like this:

arglist: (argument ',')* (argument [',']| '*' test [',' '**' test] | '**' test )

It looks like this logic was explicitly coded.

If this is determined to be a bug, we can just add [','] after the test in both cases.
History
Date User Action Args
2007-08-23 14:41:43adminlinkissue1531016 messages
2007-08-23 14:41:43admincreate