This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: cut-o/paste-o in Marshalling doc: 2.2.1
Type: Stage:
Components: Documentation Versions:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: fdrake Nosy List: fdrake, scott_daniels
Priority: normal Keywords:

Created on 2002-03-22 19:38 by scott_daniels, last changed 2022-04-10 16:05 by admin. This issue is now closed.

Messages (2)
msg9919 - (view) Author: Scott David Daniels (scott_daniels) * Date: 2002-03-22 19:38
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)
msg9920 - (view) Author: Fred Drake (fdrake) (Python committer) Date: 2002-06-17 15:45
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!
History
Date User Action Args
2022-04-10 16:05:08adminsetgithub: 36315
2002-03-22 19:38:47scott_danielscreate