Staging
v0.8.1
v0.8.1
https://github.com/python/cpython
Revision 5c73afc36ee6cca41009a510092e1f901c5dc0a0 authored by Christian Heimes on 30 November 2020, 21:34:45 UTC, committed by GitHub on 30 November 2020, 21:34:45 UTC
Add platform.freedesktop_os_release() function to parse freedesktop.org os-release files. Signed-off-by: Christian Heimes <christian@python.org> Co-authored-by: Victor Stinner <vstinner@python.org>
1 parent 9bdc40e
Tip revision: 5c73afc36ee6cca41009a510092e1f901c5dc0a0 authored by Christian Heimes on 30 November 2020, 21:34:45 UTC
bpo-28468: Add platform.freedesktop_os_release() (GH-23492)
bpo-28468: Add platform.freedesktop_os_release() (GH-23492)
Tip revision: 5c73afc
parser_interface.h
#ifndef Py_PEGENINTERFACE
#define Py_PEGENINTERFACE
#ifdef __cplusplus
extern "C" {
#endif
#include "Python.h"
#ifndef Py_LIMITED_API
PyAPI_FUNC(struct _mod *) PyParser_ASTFromString(
const char *str,
const char *filename,
int mode,
PyCompilerFlags *flags,
PyArena *arena);
PyAPI_FUNC(struct _mod *) PyParser_ASTFromStringObject(
const char *str,
PyObject* filename,
int mode,
PyCompilerFlags *flags,
PyArena *arena);
PyAPI_FUNC(struct _mod *) PyParser_ASTFromFile(
FILE *fp,
const char *filename,
const char* enc,
int mode,
const char *ps1,
const char *ps2,
PyCompilerFlags *flags,
int *errcode,
PyArena *arena);
PyAPI_FUNC(struct _mod *) PyParser_ASTFromFileObject(
FILE *fp,
PyObject *filename_ob,
const char *enc,
int mode,
const char *ps1,
const char *ps2,
PyCompilerFlags *flags,
int *errcode,
PyArena *arena);
PyAPI_FUNC(struct _mod *) PyParser_ASTFromFilename(
const char *filename,
int mode,
PyCompilerFlags *flags,
PyArena *arena);
#endif /* !Py_LIMITED_API */
#ifdef __cplusplus
}
#endif
#endif /* !Py_PEGENINTERFACE */
Computing file changes ...