On 13Dec2010 20:17, 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.
+1 again. Both the special cases and probably an example of diff
friendliness:
x = f(a,
b=3,
##c=4, hacking at dev time
d=5)
Cheers,
--
Cameron Simpson DoD#743
http://www.cskk.ezoshosting.com/cs/
A Master is someone who started before you did. - Gary Zukav