[Python-checkins] peps: Fixed two syntax errors in PEP 457.
larry.hastings
python-checkins at python.org
Wed Oct 9 02:21:14 CEST 2013
http://hg.python.org/peps/rev/4e8ada3a9f74
changeset: 5183:4e8ada3a9f74
user: Larry Hastings <larry at hastings.org>
date: Wed Oct 09 02:20:56 2013 +0200
summary:
Fixed two syntax errors in PEP 457.
files:
pep-0457.txt | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/pep-0457.txt b/pep-0457.txt
--- a/pep-0457.txt
+++ b/pep-0457.txt
@@ -145,7 +145,7 @@
in optional "groups". Groups of parameters are surrounded by
square brackets, like so::
- def addch([y, x,] ch, [attr], /):
+ def addch([y, x,] ch, [attr,] /):
Positional-only parameters that are not in an option group are
"required" positional-only parameters. All "required" positional-only
@@ -205,7 +205,7 @@
It's possible to specify a function prototype where the mapping
of arguments to parameters is ambiguous. Consider::
- def range([start,] stop, [range], /):
+ def range([start,] stop, [range,] /):
Python disambiguates these situations by preferring optional groups
to the *left* of the required group.
--
Repository URL: http://hg.python.org/peps
More information about the Python-checkins
mailing list