mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
bpo-39481: PEP 585 for enumerate, AsyncGeneratorType, mmap (GH-19421)
This commit is contained in:
parent
2fa67df605
commit
7c4185d62d
4 changed files with 11 additions and 4 deletions
|
|
@ -1346,6 +1346,8 @@ static PyMethodDef async_gen_methods[] = {
|
|||
{"asend", (PyCFunction)async_gen_asend, METH_O, async_asend_doc},
|
||||
{"athrow",(PyCFunction)async_gen_athrow, METH_VARARGS, async_athrow_doc},
|
||||
{"aclose", (PyCFunction)async_gen_aclose, METH_NOARGS, async_aclose_doc},
|
||||
{"__class_getitem__", (PyCFunction)Py_GenericAlias,
|
||||
METH_O|METH_CLASS, PyDoc_STR("See PEP 585")},
|
||||
{NULL, NULL} /* Sentinel */
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue