Staging
v0.5.1
https://github.com/python/cpython
Revision fc45cb4400409572f05c8b54f2c6f06cbefb1b4e authored by Miss Islington (bot) on 22 April 2020, 19:05:10 UTC, committed by GitHub on 22 April 2020, 19:05:10 UTC

Because some people subclass this class and call undocumented methods, and we don't want to break them.
(cherry picked from commit 39652cd8bdf7c82b7c6055089a4ed90ee546a448)

Co-authored-by: Anthony Sottile <asottile@umich.edu>
1 parent 4a6da0b
Raw File
Tip revision: fc45cb4400409572f05c8b54f2c6f06cbefb1b4e authored by Miss Islington (bot) on 22 April 2020, 19:05:10 UTC
bpo-40260: Remove unnecessary newline in compile() call (GH-19641)
Tip revision: fc45cb4
marshal.h

/* Interface for marshal.c */

#ifndef Py_MARSHAL_H
#define Py_MARSHAL_H
#ifdef __cplusplus
extern "C" {
#endif

#define Py_MARSHAL_VERSION 4

PyAPI_FUNC(void) PyMarshal_WriteLongToFile(long, FILE *, int);
PyAPI_FUNC(void) PyMarshal_WriteObjectToFile(PyObject *, FILE *, int);
PyAPI_FUNC(PyObject *) PyMarshal_WriteObjectToString(PyObject *, int);

#ifndef Py_LIMITED_API
PyAPI_FUNC(long) PyMarshal_ReadLongFromFile(FILE *);
PyAPI_FUNC(int) PyMarshal_ReadShortFromFile(FILE *);
PyAPI_FUNC(PyObject *) PyMarshal_ReadObjectFromFile(FILE *);
PyAPI_FUNC(PyObject *) PyMarshal_ReadLastObjectFromFile(FILE *);
#endif
PyAPI_FUNC(PyObject *) PyMarshal_ReadObjectFromString(const char *,
                                                      Py_ssize_t);

#ifdef __cplusplus
}
#endif
#endif /* !Py_MARSHAL_H */
back to top