diff options
author | Vladimir Matveev <vladima@fb.com> | 2020-11-10 20:09:55 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-10 20:09:55 (GMT) |
commit | 1e996c3a3b51e9c6f1f4cea8a6dbcf3bcb865060 (patch) | |
tree | 3f3ffd5d90532c6f4b1ec013919e3677d63dd21c /Include/cpython | |
parent | e59b2deffde61e5641cabd65034fa11b4db898ba (diff) | |
download | cpython-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.h | 3 |
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 { |