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

noreply@sourceforge.net noreply@sourceforge.net
Fri, 22 Mar 2002 11:38:47 -0800


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

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Scott David Daniels (scott_daniels)
Assigned to: Nobody/Anonymous (nobody)
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)


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

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