Updated post history, and added a note about the BDFL pronouncement on syntax alternatives.

This commit is contained in:
Talin 2006-05-20 05:23:44 +00:00
parent 8d006ff1a4
commit c7bd254109
1 changed files with 9 additions and 3 deletions

View File

@ -8,7 +8,7 @@ Type: Standards
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 @@ Specification
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 @@ Specification
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