[Python-Dev] A grammatical oddity: trailing commas in argument lists.

Dino Viehland dinov at microsoft.com
Fri Jul 9 21:37:30 CEST 2010


Terry wrote:
> This violates the important principle that allowed def and call arg
> sequences should match to the extent sensible and possible. In this
> sense, the SyntaxError is a bug. So I would fix this now for 3.2 and
> notify the other implementors.

+1 on fixing it - trailing commas are awesome.  I'm always annoyed in 
C# where I frequently can't use them.  This seems like a bug fix level 
change that should be easy for the other implementations to fix.






More information about the Python-Dev mailing list