This is my patch:

[ 1180995 ] binary formats for marshalling floats

Adds 2 new type codes for marshal (binary floats and binary complexes), a
new marshal version (2), updates MAGIC and fiddles the de-serializing of
code objects to be less likely to clobber the real reason for failing if
it fails.
This commit is contained in:
Michael W. Hudson 2005-06-03 14:41:55 +00:00
parent 268e61cf74
commit df88846ebc
5 changed files with 195 additions and 67 deletions

View file

@ -7,7 +7,7 @@
extern "C" {
#endif
#define Py_MARSHAL_VERSION 1
#define Py_MARSHAL_VERSION 2
PyAPI_FUNC(void) PyMarshal_WriteLongToFile(long, FILE *, int);
PyAPI_FUNC(void) PyMarshal_WriteObjectToFile(PyObject *, FILE *, int);