Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
f0ae4272
Commit
f0ae4272
authored
Feb 24, 2004
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix English usage error reported by Ken Fuchs
parent
2b55d358
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Doc/tut/tut.tex
Doc/tut/tut.tex
+2
-2
No files found.
Doc/tut/tut.tex
View file @
f0ae4272
...
@@ -1411,7 +1411,7 @@ arguments. There are three forms, which can be combined.
...
@@ -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
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment