A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2010-July/101643.html below:

trailing commas in argument lists.

[Python-Dev] A grammatical oddity: trailing commas in argument lists.Georg Brandl g.brandl at gmx.net
Fri Jul 9 19:34:05 CEST 2010
Am 09.07.2010 18:36, schrieb Eric Smith:
> On 7/9/10 10:40 AM, Mark Dickinson wrote:
>> While looking at a parser module issue
>> (http://bugs.python.org/issue9154) I noticed that Python's grammar
>> doesn't permit trailing commas after keyword-only args.  That is,
>>
>>      def f(a, b,):  pass
>>
>> is valid syntax, while
>>
>>      def f(*, a, b,): pass
>>
>> is not.  I was just curious whether the latter was deliberate or an
>> oversight.  And if an oversight, is it worth fixing after the
>> moratorium expires?  (See also http://bugs.python.org/issue2009.)
> 
> I use trailing commas all the time in argument lists. I don't use 
> keyword-only args much, but I will when I switch to 3.x. I'd like to see 
> this fixed. I'd argue it's a bug fix, but that's me.

+1

Georg

-- 
Thus spake the Lord: Thou shalt indent with four spaces. No more, no less.
Four shall be the number of spaces thou shalt indent, and the number of thy
indenting shall be four. Eight shalt thou not indent, nor either indent thou
two, excepting that thou then proceed to four. Tabs are right out.

More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4