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
b33be6e2
Commit
b33be6e2
authored
Oct 11, 1996
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Typos detected by Sjoerd
parent
c5900de5
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
8 deletions
+8
-8
Doc/lib/libfuncs.tex
Doc/lib/libfuncs.tex
+1
-1
Doc/lib/libtypes.tex
Doc/lib/libtypes.tex
+3
-3
Doc/libfuncs.tex
Doc/libfuncs.tex
+1
-1
Doc/libtypes.tex
Doc/libtypes.tex
+3
-3
No files found.
Doc/lib/libfuncs.tex
View file @
b33be6e2
...
@@ -265,7 +265,7 @@ any kind of sequence; the result is always a list.
...
@@ -265,7 +265,7 @@ any kind of sequence; the result is always a list.
\code
{
fopen()
}
:
\var
{
filename
}
is the file name to be opened,
\code
{
fopen()
}
:
\var
{
filename
}
is the file name to be opened,
\var
{
mode
}
indicates how the file is to be opened:
\code
{
'r'
}
for
\var
{
mode
}
indicates how the file is to be opened:
\code
{
'r'
}
for
reading,
\code
{
'w'
}
for writing (truncating an existing file), and
reading,
\code
{
'w'
}
for writing (truncating an existing file), and
\code
{
'a'
}
opens it for appending (which on
{
\em
some
}
{
\UNIX
}
\code
{
'a'
}
opens it for appending (which on
{
\em
some
}
\UNIX
{
}
systems means that
{
\em
all
}
writes append to the end of the file,
systems means that
{
\em
all
}
writes append to the end of the file,
regardless of the current seek position).
regardless of the current seek position).
Modes
\code
{
'r+'
}
,
\code
{
'w+'
}
and
Modes
\code
{
'r+'
}
,
\code
{
'w+'
}
and
...
...
Doc/lib/libtypes.tex
View file @
b33be6e2
...
@@ -492,7 +492,7 @@ can be used interchangeably to index the same dictionary entry.
...
@@ -492,7 +492,7 @@ can be used interchangeably to index the same dictionary entry.
\indexii
{
dictionary
}{
type
}
\indexii
{
dictionary
}{
type
}
Dictionaries are created by placing a comma-separated list of
Dictionaries are created by placing a comma-separated list of
\code
{
\var
{
key
}
:
\,
var
{
value
}}
pairs within braces, for example:
\code
{
\var
{
key
}
:
\,
\
var
{
value
}}
pairs within braces, for example:
\code
{
\{
'jack':
\,
4098, 'sjoerd':
\,
4127
\}
}
or
\code
{
\{
'jack':
\,
4098, 'sjoerd':
\,
4127
\}
}
or
\code
{
\{
4098:
\,
'jack', 4127:
\,
'sjoerd'
\}
}
.
\code
{
\{
4098:
\,
'jack', 4127:
\,
'sjoerd'
\}
}
.
...
@@ -683,7 +683,7 @@ Files have the following methods:
...
@@ -683,7 +683,7 @@ Files have the following methods:
you can tell whether the last line of a file ended in a newline
you can tell whether the last line of a file ended in a newline
or not (yes this happens!).
}
or not (yes this happens!).
}
(but may be absent when a file ends with an
(but may be absent when a file ends with an
incomplete line). If thevar
{
size
}
argument is present and
incomplete line). If the
\
var
{
size
}
argument is present and
non-negative, it is a maximum byte count (including the trailing
non-negative, it is a maximum byte count (including the trailing
newline) and an incomplete line may be returned.
newline) and an incomplete line may be returned.
An empty string is returned when
\EOF
{}
is hit
An empty string is returned when
\EOF
{}
is hit
...
@@ -713,7 +713,7 @@ Files have the following methods:
...
@@ -713,7 +713,7 @@ Files have the following methods:
Truncate the file's size. If the optional size argument present, the
Truncate the file's size. If the optional size argument present, the
file is truncated to (at most) that size. The size defaults to the
file is truncated to (at most) that size. The size defaults to the
current position. Availability of this function depends on the
current position. Availability of this function depends on the
operating system version (e.g., not all
{
\UNIX
}
versions support this
operating system version (e.g., not all
\UNIX
{
}
versions support this
operation).
operation).
\end{funcdesc}
\end{funcdesc}
...
...
Doc/libfuncs.tex
View file @
b33be6e2
...
@@ -265,7 +265,7 @@ any kind of sequence; the result is always a list.
...
@@ -265,7 +265,7 @@ any kind of sequence; the result is always a list.
\code
{
fopen()
}
:
\var
{
filename
}
is the file name to be opened,
\code
{
fopen()
}
:
\var
{
filename
}
is the file name to be opened,
\var
{
mode
}
indicates how the file is to be opened:
\code
{
'r'
}
for
\var
{
mode
}
indicates how the file is to be opened:
\code
{
'r'
}
for
reading,
\code
{
'w'
}
for writing (truncating an existing file), and
reading,
\code
{
'w'
}
for writing (truncating an existing file), and
\code
{
'a'
}
opens it for appending (which on
{
\em
some
}
{
\UNIX
}
\code
{
'a'
}
opens it for appending (which on
{
\em
some
}
\UNIX
{
}
systems means that
{
\em
all
}
writes append to the end of the file,
systems means that
{
\em
all
}
writes append to the end of the file,
regardless of the current seek position).
regardless of the current seek position).
Modes
\code
{
'r+'
}
,
\code
{
'w+'
}
and
Modes
\code
{
'r+'
}
,
\code
{
'w+'
}
and
...
...
Doc/libtypes.tex
View file @
b33be6e2
...
@@ -492,7 +492,7 @@ can be used interchangeably to index the same dictionary entry.
...
@@ -492,7 +492,7 @@ can be used interchangeably to index the same dictionary entry.
\indexii
{
dictionary
}{
type
}
\indexii
{
dictionary
}{
type
}
Dictionaries are created by placing a comma-separated list of
Dictionaries are created by placing a comma-separated list of
\code
{
\var
{
key
}
:
\,
var
{
value
}}
pairs within braces, for example:
\code
{
\var
{
key
}
:
\,
\
var
{
value
}}
pairs within braces, for example:
\code
{
\{
'jack':
\,
4098, 'sjoerd':
\,
4127
\}
}
or
\code
{
\{
'jack':
\,
4098, 'sjoerd':
\,
4127
\}
}
or
\code
{
\{
4098:
\,
'jack', 4127:
\,
'sjoerd'
\}
}
.
\code
{
\{
4098:
\,
'jack', 4127:
\,
'sjoerd'
\}
}
.
...
@@ -683,7 +683,7 @@ Files have the following methods:
...
@@ -683,7 +683,7 @@ Files have the following methods:
you can tell whether the last line of a file ended in a newline
you can tell whether the last line of a file ended in a newline
or not (yes this happens!).
}
or not (yes this happens!).
}
(but may be absent when a file ends with an
(but may be absent when a file ends with an
incomplete line). If thevar
{
size
}
argument is present and
incomplete line). If the
\
var
{
size
}
argument is present and
non-negative, it is a maximum byte count (including the trailing
non-negative, it is a maximum byte count (including the trailing
newline) and an incomplete line may be returned.
newline) and an incomplete line may be returned.
An empty string is returned when
\EOF
{}
is hit
An empty string is returned when
\EOF
{}
is hit
...
@@ -713,7 +713,7 @@ Files have the following methods:
...
@@ -713,7 +713,7 @@ Files have the following methods:
Truncate the file's size. If the optional size argument present, the
Truncate the file's size. If the optional size argument present, the
file is truncated to (at most) that size. The size defaults to the
file is truncated to (at most) that size. The size defaults to the
current position. Availability of this function depends on the
current position. Availability of this function depends on the
operating system version (e.g., not all
{
\UNIX
}
versions support this
operating system version (e.g., not all
\UNIX
{
}
versions support this
operation).
operation).
\end{funcdesc}
\end{funcdesc}
...
...
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