mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Spell emdash with three hyphens.
Minor nits.
This commit is contained in:
parent
266b4c1506
commit
0c2af2bef6
2 changed files with 10 additions and 14 deletions
|
@ -1,7 +1,7 @@
|
||||||
\section{Built-in Module \sectcode{marshal}}
|
\section{Built-in Module \sectcode{marshal}}
|
||||||
\label{module-marshal}
|
\label{module-marshal}
|
||||||
|
|
||||||
\bimodindex{marshal}
|
\bimodindex{marshal}
|
||||||
|
|
||||||
This module contains functions that can read and write Python
|
This module contains functions that can read and write Python
|
||||||
values in a binary format. The format is specific to Python, but
|
values in a binary format. The format is specific to Python, but
|
||||||
independent of machine architecture issues (e.g., you can write a
|
independent of machine architecture issues (e.g., you can write a
|
||||||
|
@ -54,16 +54,14 @@ operating on strings.
|
||||||
|
|
||||||
The module defines these functions:
|
The module defines these functions:
|
||||||
|
|
||||||
\setindexsubitem{(in module marshal)}
|
\begin{funcdesc}{dump}{value, file}
|
||||||
|
|
||||||
\begin{funcdesc}{dump}{value\, file}
|
|
||||||
Write the value on the open file. The value must be a supported
|
Write the value on the open file. The value must be a supported
|
||||||
type. The file must be an open file object such as
|
type. The file must be an open file object such as
|
||||||
\code{sys.stdout} or returned by \function{open()} or
|
\code{sys.stdout} or returned by \function{open()} or
|
||||||
\function{posix.popen()}.
|
\function{posix.popen()}.
|
||||||
|
|
||||||
If the value has (or contains an object that has) an unsupported type,
|
If the value has (or contains an object that has) an unsupported type,
|
||||||
a \exception{ValueError} exception is raised -- but garbage data
|
a \exception{ValueError} exception is raised --- but garbage data
|
||||||
will also be written to the file. The object will not be properly
|
will also be written to the file. The object will not be properly
|
||||||
read back by \function{load()}.
|
read back by \function{load()}.
|
||||||
\end{funcdesc}
|
\end{funcdesc}
|
||||||
|
@ -73,8 +71,8 @@ The module defines these functions:
|
||||||
is read, raise \exception{EOFError}, \exception{ValueError} or
|
is read, raise \exception{EOFError}, \exception{ValueError} or
|
||||||
\exception{TypeError}. The file must be an open file object.
|
\exception{TypeError}. The file must be an open file object.
|
||||||
|
|
||||||
Warning: If an object containing an unsupported type was marshalled
|
\strong{Warning:} If an object containing an unsupported type was
|
||||||
with \function{dump()}, \function{load()} will substitute
|
marshalled with \function{dump()}, \function{load()} will substitute
|
||||||
\code{None} for the unmarshallable type.
|
\code{None} for the unmarshallable type.
|
||||||
\end{funcdesc}
|
\end{funcdesc}
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
\section{Built-in Module \sectcode{marshal}}
|
\section{Built-in Module \sectcode{marshal}}
|
||||||
\label{module-marshal}
|
\label{module-marshal}
|
||||||
|
|
||||||
\bimodindex{marshal}
|
\bimodindex{marshal}
|
||||||
|
|
||||||
This module contains functions that can read and write Python
|
This module contains functions that can read and write Python
|
||||||
values in a binary format. The format is specific to Python, but
|
values in a binary format. The format is specific to Python, but
|
||||||
independent of machine architecture issues (e.g., you can write a
|
independent of machine architecture issues (e.g., you can write a
|
||||||
|
@ -54,16 +54,14 @@ operating on strings.
|
||||||
|
|
||||||
The module defines these functions:
|
The module defines these functions:
|
||||||
|
|
||||||
\setindexsubitem{(in module marshal)}
|
\begin{funcdesc}{dump}{value, file}
|
||||||
|
|
||||||
\begin{funcdesc}{dump}{value\, file}
|
|
||||||
Write the value on the open file. The value must be a supported
|
Write the value on the open file. The value must be a supported
|
||||||
type. The file must be an open file object such as
|
type. The file must be an open file object such as
|
||||||
\code{sys.stdout} or returned by \function{open()} or
|
\code{sys.stdout} or returned by \function{open()} or
|
||||||
\function{posix.popen()}.
|
\function{posix.popen()}.
|
||||||
|
|
||||||
If the value has (or contains an object that has) an unsupported type,
|
If the value has (or contains an object that has) an unsupported type,
|
||||||
a \exception{ValueError} exception is raised -- but garbage data
|
a \exception{ValueError} exception is raised --- but garbage data
|
||||||
will also be written to the file. The object will not be properly
|
will also be written to the file. The object will not be properly
|
||||||
read back by \function{load()}.
|
read back by \function{load()}.
|
||||||
\end{funcdesc}
|
\end{funcdesc}
|
||||||
|
@ -73,8 +71,8 @@ The module defines these functions:
|
||||||
is read, raise \exception{EOFError}, \exception{ValueError} or
|
is read, raise \exception{EOFError}, \exception{ValueError} or
|
||||||
\exception{TypeError}. The file must be an open file object.
|
\exception{TypeError}. The file must be an open file object.
|
||||||
|
|
||||||
Warning: If an object containing an unsupported type was marshalled
|
\strong{Warning:} If an object containing an unsupported type was
|
||||||
with \function{dump()}, \function{load()} will substitute
|
marshalled with \function{dump()}, \function{load()} will substitute
|
||||||
\code{None} for the unmarshallable type.
|
\code{None} for the unmarshallable type.
|
||||||
\end{funcdesc}
|
\end{funcdesc}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue