https://github.com/python/cpython
Revision 6015cc50bc38b9e920ce4986ee10658eaa14f561 authored by Serhiy Storchaka on 28 October 2018, 11:43:03 UTC, committed by GitHub on 28 October 2018, 11:43:03 UTC
Some projects (e.g. Chameleon) create ast.Str containing an instance
of the str subclass.
1 parent 913876d
Raw File
Tip revision: 6015cc50bc38b9e920ce4986ee10658eaa14f561 authored by Serhiy Storchaka on 28 October 2018, 11:43:03 UTC
bpo-32892: Support subclasses of base types in isinstance checks for AST constants. (GH-9934)
Tip revision: 6015cc5
eval.h

/* Interface to execute compiled code */

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

PyAPI_FUNC(PyObject *) PyEval_EvalCode(PyObject *, PyObject *, PyObject *);

PyAPI_FUNC(PyObject *) PyEval_EvalCodeEx(PyObject *co,
                                         PyObject *globals,
                                         PyObject *locals,
                                         PyObject *const *args, int argc,
                                         PyObject *const *kwds, int kwdc,
                                         PyObject *const *defs, int defc,
                                         PyObject *kwdefs, PyObject *closure);

#ifndef Py_LIMITED_API
PyAPI_FUNC(PyObject *) _PyEval_EvalCodeWithName(
    PyObject *co,
    PyObject *globals, PyObject *locals,
    PyObject *const *args, Py_ssize_t argcount,
    PyObject *const *kwnames, PyObject *const *kwargs,
    Py_ssize_t kwcount, int kwstep,
    PyObject *const *defs, Py_ssize_t defcount,
    PyObject *kwdefs, PyObject *closure,
    PyObject *name, PyObject *qualname);

PyAPI_FUNC(PyObject *) _PyEval_CallTracing(PyObject *func, PyObject *args);
#endif

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