Staging
v0.5.1
v0.5.1
https://github.com/python/cpython
Revision 35acb3597208e10a101140474adec86859d57f61 authored by Victor Stinner on 18 December 2019, 09:11:05 UTC, committed by GitHub on 18 December 2019, 09:11:05 UTC
Multiprocessing and concurrent.futures tests now stop the resource tracker process when tests complete. Add ResourceTracker._stop() method to multiprocessing.resource_tracker. Add _cleanup_tests() helper function to multiprocessing.util: share code between multiprocessing and concurrent.futures tests. (cherry picked from commit 9707e8e22d80ca97bf7a9812816701cecde6d226)
1 parent b1f2044
Tip revision: 35acb3597208e10a101140474adec86859d57f61 authored by Victor Stinner on 18 December 2019, 09:11:05 UTC
bpo-38546: multiprocessing tests stop the resource tracker (GH-17641) (GH-17647)
bpo-38546: multiprocessing tests stop the resource tracker (GH-17641) (GH-17647)
Tip revision: 35acb35
ast.h
#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);
#ifndef Py_LIMITED_API
/* _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 statemnts or NULL if it doesn't start from a literal string.
Doesn't set exception. */
PyAPI_FUNC(PyObject *) _PyAST_GetDocString(asdl_seq *);
#endif /* !Py_LIMITED_API */
#ifdef __cplusplus
}
#endif
#endif /* !Py_AST_H */
Computing file changes ...