summaryrefslogtreecommitdiffstats
path: root/Include/cpython
diff options
context:
space:
mode:
authorVladimir Matveev <vladima@fb.com>2020-11-10 20:09:55 (GMT)
committerGitHub <noreply@github.com>2020-11-10 20:09:55 (GMT)
commit1e996c3a3b51e9c6f1f4cea8a6dbcf3bcb865060 (patch)
tree3f3ffd5d90532c6f4b1ec013919e3677d63dd21c /Include/cpython
parente59b2deffde61e5641cabd65034fa11b4db898ba (diff)
downloadcpython-1e996c3a3b51e9c6f1f4cea8a6dbcf3bcb865060.zip
cpython-1e996c3a3b51e9c6f1f4cea8a6dbcf3bcb865060.tar.gz
cpython-1e996c3a3b51e9c6f1f4cea8a6dbcf3bcb865060.tar.bz2
bpo-42085: Introduce dedicated entry in PyAsyncMethods for sending values (#22780)
Diffstat (limited to 'Include/cpython')
-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 0db53c3..ec6a364 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 {