From 06f5b1d3dd2314af2e1f97e8da45bb28b0969f5e Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Fri, 19 Aug 2016 17:12:23 +0200 Subject: Fix PyObject_Call() parameter names Issue #27128: arg=>args, kw=>kwargs. Same change for PyEval_CallObjectWithKeywords(). --- Include/ceval.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Include/ceval.h') diff --git a/Include/ceval.h b/Include/ceval.h index d194044911..73b4ca6328 100644 --- a/Include/ceval.h +++ b/Include/ceval.h @@ -8,7 +8,7 @@ extern "C" { /* Interface to random parts in ceval.c */ PyAPI_FUNC(PyObject *) PyEval_CallObjectWithKeywords( - PyObject *, PyObject *, PyObject *); + PyObject *func, PyObject *args, PyObject *kwargs); /* Inline this */ #define PyEval_CallObject(func,arg) \ -- cgit v1.2.1 From 0b77d53b22873d0be290d30321a03f4769489ddc Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Mon, 5 Sep 2016 15:33:46 -0700 Subject: Implement the frame evaluation API aspect of PEP 523. --- Include/ceval.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Include/ceval.h') diff --git a/Include/ceval.h b/Include/ceval.h index 73b4ca6328..7607f75dca 100644 --- a/Include/ceval.h +++ b/Include/ceval.h @@ -119,6 +119,9 @@ PyAPI_FUNC(const char *) PyEval_GetFuncDesc(PyObject *); PyAPI_FUNC(PyObject *) PyEval_GetCallStats(PyObject *); PyAPI_FUNC(PyObject *) PyEval_EvalFrame(struct _frame *); PyAPI_FUNC(PyObject *) PyEval_EvalFrameEx(struct _frame *f, int exc); +#ifndef Py_LIMITED_API +PyAPI_FUNC(PyObject *) _PyEval_EvalFrameDefault(struct _frame *f, int exc); +#endif /* Interface for threads. -- cgit v1.2.1 From 7cbba2deb3fc49bd66e11b34f8e210371bac5913 Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Wed, 7 Sep 2016 11:16:41 -0700 Subject: Add the co_extra field and accompanying APIs to code objects. This completes PEP 523. --- Include/ceval.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Include/ceval.h') diff --git a/Include/ceval.h b/Include/ceval.h index 7607f75dca..81f4bbf458 100644 --- a/Include/ceval.h +++ b/Include/ceval.h @@ -187,6 +187,10 @@ PyAPI_FUNC(void) _PyEval_SetSwitchInterval(unsigned long microseconds); PyAPI_FUNC(unsigned long) _PyEval_GetSwitchInterval(void); #endif +#ifndef Py_LIMITED_API +PyAPI_FUNC(Py_ssize_t) _PyEval_RequestCodeExtraIndex(freefunc); +#endif + #define Py_BEGIN_ALLOW_THREADS { \ PyThreadState *_save; \ _save = PyEval_SaveThread(); -- cgit v1.2.1 From 17668cfa5e0e6f50376cc233d9b063b908a19845 Mon Sep 17 00:00:00 2001 From: Yury Selivanov Date: Thu, 8 Sep 2016 22:01:51 -0700 Subject: Issue #28003: Implement PEP 525 -- Asynchronous Generators. --- Include/ceval.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Include/ceval.h') diff --git a/Include/ceval.h b/Include/ceval.h index 81f4bbf458..c6820632b0 100644 --- a/Include/ceval.h +++ b/Include/ceval.h @@ -25,6 +25,10 @@ PyAPI_FUNC(void) PyEval_SetProfile(Py_tracefunc, PyObject *); PyAPI_FUNC(void) PyEval_SetTrace(Py_tracefunc, PyObject *); PyAPI_FUNC(void) _PyEval_SetCoroutineWrapper(PyObject *); PyAPI_FUNC(PyObject *) _PyEval_GetCoroutineWrapper(void); +PyAPI_FUNC(void) _PyEval_SetAsyncGenFirstiter(PyObject *); +PyAPI_FUNC(PyObject *) _PyEval_GetAsyncGenFirstiter(void); +PyAPI_FUNC(void) _PyEval_SetAsyncGenFinalizer(PyObject *); +PyAPI_FUNC(PyObject *) _PyEval_GetAsyncGenFinalizer(void); #endif struct _frame; /* Avoid including frameobject.h */ -- cgit v1.2.1 From 97b3ef45e988a2ede5143dbf716991ca621a0914 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Sun, 11 Sep 2016 11:03:14 +0300 Subject: Issue #26900: Excluded underscored names and other private API from limited API. --- Include/ceval.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Include/ceval.h') diff --git a/Include/ceval.h b/Include/ceval.h index c6820632b0..89c6062f11 100644 --- a/Include/ceval.h +++ b/Include/ceval.h @@ -179,7 +179,9 @@ PyAPI_FUNC(void) PyEval_RestoreThread(PyThreadState *); PyAPI_FUNC(int) PyEval_ThreadsInitialized(void); PyAPI_FUNC(void) PyEval_InitThreads(void); +#ifndef Py_LIMITED_API PyAPI_FUNC(void) _PyEval_FiniThreads(void); +#endif /* !Py_LIMITED_API */ PyAPI_FUNC(void) PyEval_AcquireLock(void); PyAPI_FUNC(void) PyEval_ReleaseLock(void); PyAPI_FUNC(void) PyEval_AcquireThread(PyThreadState *tstate); -- cgit v1.2.1