mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
bpo-39573: Add Py_IS_TYPE() function (GH-18488)
Co-Author: Neil Schemenauer <nas-github@arctrix.com>
This commit is contained in:
parent
968dcd9e7a
commit
d905df766c
32 changed files with 61 additions and 46 deletions
|
@ -255,7 +255,7 @@ gen_send_ex(PyGenObject *gen, PyObject *arg, int exc, int closing)
|
|||
if (PyCoro_CheckExact(gen)) {
|
||||
msg = "coroutine raised StopIteration";
|
||||
}
|
||||
else if PyAsyncGen_CheckExact(gen) {
|
||||
else if (PyAsyncGen_CheckExact(gen)) {
|
||||
msg = "async generator raised StopIteration";
|
||||
}
|
||||
_PyErr_FormatFromCause(PyExc_RuntimeError, "%s", msg);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue