[New-bugs-announce] [issue24600] function(**dict) does not accept comma after dict (inside parenthese)

Grégory Starck report at bugs.python.org
Thu Jul 9 22:30:21 CEST 2015


New submission from Grégory Starck:

Consider following:

Python 3.4.0 (default, Jun 19 2015, 14:20:21) 
[GCC 4.8.2] on linux

>>> def f(**kw): pass

>>> f(a=1 , )
>>> # ok

>>> f(**{'a': 1} )
>>> # ok

>>> # but :

>>> f(**{'a': 1} , )
SyntaxError: invalid syntax
>>> 

shouldn't the last form be also allowed as is the first one ??

if it is: Could I personnaly handle this fix ? I'd be very proud to bring (even such a low impact problem) my own stone to Python :)

Kind regards.

----------
messages: 246525
nosy: g.starck at gmail.com
priority: normal
severity: normal
status: open
title: function(**dict) does not accept comma after dict (inside parenthese)
versions: Python 3.4

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24600>
_______________________________________


More information about the New-bugs-announce mailing list