mirror of
https://github.com/python/cpython.git
synced 2025-11-18 10:19:40 +00:00
fix English usage error reported by Ken Fuchs
This commit is contained in:
parent
2b55d35850
commit
f0ae4272b4
1 changed files with 2 additions and 2 deletions
|
|
@ -1411,7 +1411,7 @@ arguments. There are three forms, which can be combined.
|
||||||
|
|
||||||
The most useful form is to specify a default value for one or more
|
The most useful form is to specify a default value for one or more
|
||||||
arguments. This creates a function that can be called with fewer
|
arguments. This creates a function that can be called with fewer
|
||||||
arguments than it is defined
|
arguments than it is defined to allow. For example:
|
||||||
|
|
||||||
\begin{verbatim}
|
\begin{verbatim}
|
||||||
def ask_ok(prompt, retries=4, complaint='Yes or no, please!'):
|
def ask_ok(prompt, retries=4, complaint='Yes or no, please!'):
|
||||||
|
|
@ -3282,7 +3282,7 @@ the message: the types in the example are
|
||||||
\exception{ZeroDivisionError}, \exception{NameError} and
|
\exception{ZeroDivisionError}, \exception{NameError} and
|
||||||
\exception{TypeError}.
|
\exception{TypeError}.
|
||||||
The string printed as the exception type is the name of the built-in
|
The string printed as the exception type is the name of the built-in
|
||||||
name for the exception that occurred. This is true for all built-in
|
exception that occurred. This is true for all built-in
|
||||||
exceptions, but need not be true for user-defined exceptions (although
|
exceptions, but need not be true for user-defined exceptions (although
|
||||||
it is a useful convention).
|
it is a useful convention).
|
||||||
Standard exception names are built-in identifiers (not reserved
|
Standard exception names are built-in identifiers (not reserved
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue