[Python-bugs-list] [ python-Bugs-533735 ] cut-o/paste-o in Marshalling doc: 2.2.1

noreply@sourceforge.net noreply@sourceforge.net
Mon, 17 Jun 2002 08:45:49 -0700


Bugs item #533735, was opened at 2002-03-22 14:38
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=533735&group_id=5470

>Category: Documentation
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Scott David Daniels (scott_daniels)
>Assigned to: Fred L. Drake, Jr. (fdrake)
Summary: cut-o/paste-o in Marshalling doc: 2.2.1

Initial Comment:
Not very hard to figure out, but easy enough to fix:

5.4 Data marshalling support

>>> (A)
void PyMarshal_WriteObjectToFile(PyObject *value, FILE 
*file) 
Marshal a Python object, value, to file. This will 
only write the least-significant 16 bits of value; 
regardless of the size of the native short type.

>>> The final sentence should be dropped (or moved to 
spot XYZ)

>>> (B)
int PyMarshal_ReadShortFromFile(FILE *file) 
Return a C short from the data stream in a FILE* 
opened for reading. Only a 16-bit value can be read in 
using this function, regardless of the native size of 
long. 

>>> perhaps "... native size of short."  (this is XYZ)


----------------------------------------------------------------------

>Comment By: Fred L. Drake, Jr. (fdrake)
Date: 2002-06-17 11:45

Message:
Logged In: YES 
user_id=3066

Commited corrections to the sources in Doc/api/utilities.tex
revisions 1.5 and 1.3.8.1.  Thanks!

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=533735&group_id=5470