mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
Issue 24017: Drop getawaitablefunc and friends in favor of unaryfunc.
This commit is contained in:
parent
6076a385e3
commit
6ef059097c
5 changed files with 13 additions and 16 deletions
|
@ -173,9 +173,6 @@ typedef PyObject *(*ssizessizeargfunc)(PyObject *, Py_ssize_t, Py_ssize_t);
|
|||
typedef int(*ssizeobjargproc)(PyObject *, Py_ssize_t, PyObject *);
|
||||
typedef int(*ssizessizeobjargproc)(PyObject *, Py_ssize_t, Py_ssize_t, PyObject *);
|
||||
typedef int(*objobjargproc)(PyObject *, PyObject *, PyObject *);
|
||||
typedef PyObject *(*getawaitablefunc) (PyObject *);
|
||||
typedef PyObject *(*getaiterfunc) (PyObject *);
|
||||
typedef PyObject *(*aiternextfunc) (PyObject *);
|
||||
|
||||
#ifndef Py_LIMITED_API
|
||||
/* buffer interface */
|
||||
|
@ -305,9 +302,9 @@ typedef struct {
|
|||
} PyMappingMethods;
|
||||
|
||||
typedef struct {
|
||||
getawaitablefunc am_await;
|
||||
getaiterfunc am_aiter;
|
||||
aiternextfunc am_anext;
|
||||
unaryfunc am_await;
|
||||
unaryfunc am_aiter;
|
||||
unaryfunc am_anext;
|
||||
} PyAsyncMethods;
|
||||
|
||||
typedef struct {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue