Staging
v0.5.1
https://github.com/python/cpython
Revision 03748837342d45126e71727b400e8fb3d96afc9f authored by Miss Islington (bot) on 15 September 2020, 19:45:05 UTC, committed by GitHub on 15 September 2020, 19:45:05 UTC
From "can produce difference information in various formats ..."
to " can produce information about file differences in various formats ..."

Automerge-Triggered-By: @Mariatta
(cherry picked from commit 5531269f698f789d1247123fd82681f7a455f66e)

Co-authored-by: Mandeep <mandeep052@gmail.com>
1 parent 55e0836
Raw File
Tip revision: 03748837342d45126e71727b400e8fb3d96afc9f authored by Miss Islington (bot) on 15 September 2020, 19:45:05 UTC
Improve the description of difflib in the documentation (GH-22253) (#22261)
Tip revision: 0374883
ast.h
#ifndef Py_LIMITED_API
#ifndef Py_AST_H
#define Py_AST_H
#ifdef __cplusplus
extern "C" {
#endif

#include "Python-ast.h"   /* mod_ty */
#include "node.h"         /* node */

PyAPI_FUNC(int) PyAST_Validate(mod_ty);
PyAPI_FUNC(mod_ty) PyAST_FromNode(
    const node *n,
    PyCompilerFlags *flags,
    const char *filename,       /* decoded from the filesystem encoding */
    PyArena *arena);
PyAPI_FUNC(mod_ty) PyAST_FromNodeObject(
    const node *n,
    PyCompilerFlags *flags,
    PyObject *filename,
    PyArena *arena);

/* _PyAST_ExprAsUnicode is defined in ast_unparse.c */
PyAPI_FUNC(PyObject *) _PyAST_ExprAsUnicode(expr_ty);

/* Return the borrowed reference to the first literal string in the
   sequence of statements or NULL if it doesn't start from a literal string.
   Doesn't set exception. */
PyAPI_FUNC(PyObject *) _PyAST_GetDocString(asdl_seq *);

#ifdef __cplusplus
}
#endif
#endif /* !Py_AST_H */
#endif /* !Py_LIMITED_API */
back to top