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
b084017c
Commit
b084017c
authored
Jun 17, 2002
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix documentation for PyMarshal_WriteObjectToFile() and
PyMarshal_WriteObjectToFile(). This closes SF bug #533735.
parent
6fc22f6c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
Doc/api/utilities.tex
Doc/api/utilities.tex
+5
-5
No files found.
Doc/api/utilities.tex
View file @
b084017c
...
...
@@ -286,14 +286,14 @@ Numeric values are stored with the least significant byte first.
\end{cfuncdesc}
\begin{cfuncdesc}
{
void
}{
PyMarshal
_
WriteShortToFile
}{
short value, FILE *file
}
Marshal a
\ctype
{
short
}
integer,
\var
{
value
}
, to
\var
{
file
}
.
Marshal a
\ctype
{
short
}
integer,
\var
{
value
}
, to
\var
{
file
}
. This
will only write the least-significant 16 bits of
\var
{
value
}
;
regardless of the size of the native
\ctype
{
short
}
type.
\end{cfuncdesc}
\begin{cfuncdesc}
{
void
}{
PyMarshal
_
WriteObjectToFile
}{
PyObject *value,
FILE *file
}
Marshal a Python object,
\var
{
value
}
, to
\var
{
file
}
. This
will only write the least-significant 16 bits of
\var
{
value
}
;
regardless of the size of the native
\ctype
{
short
}
type.
Marshal a Python object,
\var
{
value
}
, to
\var
{
file
}
.
\end{cfuncdesc}
\begin{cfuncdesc}
{
PyObject*
}{
PyMarshal
_
WriteObjectToString
}{
PyObject *value
}
...
...
@@ -318,7 +318,7 @@ Should only non-negative values be written using these routines?
\begin{cfuncdesc}
{
int
}{
PyMarshal
_
ReadShortFromFile
}{
FILE *file
}
Return a C
\ctype
{
short
}
from the data stream in a
\ctype
{
FILE*
}
opened for reading. Only a 16-bit value can be read in using
this function, regardless of the native size of
\ctype
{
long
}
.
this function, regardless of the native size of
\ctype
{
short
}
.
\end{cfuncdesc}
\begin{cfuncdesc}
{
PyObject*
}{
PyMarshal
_
ReadObjectFromFile
}{
FILE *file
}
...
...
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