[Python-checkins] r46053 - peps/trunk/pep-3102.txt
talin
python-checkins at python.org
Sat May 20 07:23:45 CEST 2006
Author: talin
Date: Sat May 20 07:23:44 2006
New Revision: 46053
Modified:
peps/trunk/pep-3102.txt
Log:
Updated post history, and added a note about the BDFL pronouncement on syntax alternatives.
Modified: peps/trunk/pep-3102.txt
==============================================================================
--- peps/trunk/pep-3102.txt (original)
+++ peps/trunk/pep-3102.txt Sat May 20 07:23:44 2006
@@ -8,7 +8,7 @@
Content-Type: text/plain
Created: 22-Apr-2006
Python-Version: 3.0
-Post-History:
+Post-History: 28-Apr-2006, May-19-2006
Abstract
@@ -65,7 +65,9 @@
they must be supplied via keyword.
The second syntactical change is to allow the argument name to
- be omitted for a varargs argument:
+ be omitted for a varargs argument. The meaning of this is to
+ allow for keyword-only arguments for functions that would not
+ otherwise take a varargs argument:
def compare(a, b, *, key=None):
...
@@ -95,7 +97,11 @@
As a convenient shortcut, we can simply omit the 'ignore' name,
meaning 'don't allow any positional arguments beyond this point'.
-
+
+ (Note: After much discussion of alternative syntax proposals, the
+ BDFL has pronounced in favor of this 'single star' syntax for
+ indicating the end of positional parameters.)
+
Function Calling Behavior
More information about the Python-checkins
mailing list