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

2010-12-14 Thread Ethan Furman

Terry Reedy wrote:

On 12/13/2010 2:17 PM, Antoine Pitrou wrote:

On Mon, 13 Dec 2010 14:09:02 -0500
Alexander Belopolsky  wrote:

On Mon, Dec 13, 2010 at 11:54 AM, Guido van Rossum  
wrote:

I'm at least +0 on
allowing trailing commas in the situation the OP mentioned.



FWIW, I am also about +0.5 on allowing trailing comma.  Note that in a
similar situation,  the C standardization committee has erred on the
side of consistency:

"""
A new feature of C99: a common extension in many implementations
allows a trailing comma after the list of enumeration constants. The
Committee decided to adopt this feature as an innocuous extension that
mirrors the trailing commas allowed in initializers.
""" http://www.open-std.org/jtc1/sc22/wg14/www/C99RationaleV5.10.pdf

Similarly, I find allowing trailing comma in keyword only arguments
lists to be an innocuous extension that mirrors the trailing commas
allowed in the positional arguments lists.


+1 from me as well. Special cases are hard to remember.


Same here. A strong +1 for a consistent rule (always or never allowed) 
with a +1 for always given others use case of one param/arg per line.


+1 on consistency.

+1 on allowing the trailing comma.

~Ethan~
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] configparser 1.1 - one last bug fix needed

2010-12-14 Thread Tim Golden

On 14/12/2010 17:01, Raymond Hettinger wrote:


On Dec 14, 2010, at 3:38 AM, Fred Drake wrote:


On Tue, Dec 14, 2010 at 6:24 AM, Steven D'Aprano  wrote:

The good thing about that idea is that maintenance of buggy.py will be so
simple!


It's self-describing, and needs no further documentation.  :-)



And psychologically more effective than deprecation.
Anyone writing "import buggy" probably feels like they
have got some explaining to do :-)


They might be intro retro-robotics:

  http://www.anf.nildram.co.uk/beebcontrol/buggies/bbc_buggy/index.html

(For those not in the UK, this was a very popular schools
project kit on the back of the famous BBC micro initiative)

TJG
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] configparser 1.1 - one last bug fix needed

2010-12-14 Thread Raymond Hettinger

On Dec 14, 2010, at 3:38 AM, Fred Drake wrote:

> On Tue, Dec 14, 2010 at 6:24 AM, Steven D'Aprano  wrote:
>> The good thing about that idea is that maintenance of buggy.py will be so
>> simple!
> 
> It's self-describing, and needs no further documentation.  :-)
> 

And psychologically more effective than deprecation.
Anyone writing "import buggy" probably feels like they
have got some explaining to do :-)


Raymond___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] configparser 1.1 - one last bug fix needed

2010-12-14 Thread Fred Drake
On Tue, Dec 14, 2010 at 6:24 AM, Steven D'Aprano  wrote:
> The good thing about that idea is that maintenance of buggy.py will be so
> simple!

It's self-describing, and needs no further documentation.  :-)


  -Fred

--
Fred L. Drake, Jr.    
"A storm broke loose in my mind."  --Albert Einstein
___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com


Re: [Python-Dev] configparser 1.1 - one last bug fix needed

2010-12-14 Thread Steven D'Aprano

Antoine Pitrou wrote:

On Tue, 14 Dec 2010 10:20:04 +1000
Nick Coghlan  wrote:


+1 from me.

If anyone complains too much, perhaps we can offer to retain the old
ConfigParser as "_BuggyConfigParser"? (that idea is only partially
tongue-in-cheek...)


Or we can put it in the "buggy" module which receives all buggy code.


The good thing about that idea is that maintenance of buggy.py will be 
so simple!




--
Steven

___
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com