summaryrefslogtreecommitdiff
path: root/Include/cpython/object.h
diff options
context:
space:
mode:
authorVladimir Matveev <vladima@fb.com>2020-11-10 12:09:55 -0800
committerGitHub <noreply@github.com>2020-11-10 12:09:55 -0800
commit1e996c3a3b51e9c6f1f4cea8a6dbcf3bcb865060 (patch)
tree3f3ffd5d90532c6f4b1ec013919e3677d63dd21c /Include/cpython/object.h
parente59b2deffde61e5641cabd65034fa11b4db898ba (diff)
downloadcpython-git-1e996c3a3b51e9c6f1f4cea8a6dbcf3bcb865060.tar.gz
bpo-42085: Introduce dedicated entry in PyAsyncMethods for sending values (#22780)
Diffstat (limited to 'Include/cpython/object.h')
-rw-r--r--Include/cpython/object.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Include/cpython/object.h b/Include/cpython/object.h
index 0db53c312f..ec6a364767 100644
--- a/Include/cpython/object.h
+++ b/Include/cpython/object.h
@@ -167,10 +167,13 @@ typedef struct {
objobjargproc mp_ass_subscript;
} PyMappingMethods;
+typedef PySendResult (*sendfunc)(PyObject *iter, PyObject *value, PyObject **result);
+
typedef struct {
unaryfunc am_await;
unaryfunc am_aiter;
unaryfunc am_anext;
+ sendfunc am_send;
} PyAsyncMethods;
typedef struct {