diff options
author | Ethan Smith <ethan@ethanhs.me> | 2020-04-10 03:28:08 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-10 03:28:08 (GMT) |
commit | a8403d057d41a022d819fd8d6fbe2a666f72b6f5 (patch) | |
tree | 9dd4b2f0ea50d8512a9245aeb3c4492b0aa20a2c /Modules | |
parent | 38ada3bac8205a7690d573d715b0e84e60297c4c (diff) | |
download | cpython-a8403d057d41a022d819fd8d6fbe2a666f72b6f5.zip cpython-a8403d057d41a022d819fd8d6fbe2a666f72b6f5.tar.gz cpython-a8403d057d41a022d819fd8d6fbe2a666f72b6f5.tar.bz2 |
Generic itertools.chain (GH-19417)
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/itertoolsmodule.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/itertoolsmodule.c b/Modules/itertoolsmodule.c index e99c964..4ebeb74 100644 --- a/Modules/itertoolsmodule.c +++ b/Modules/itertoolsmodule.c @@ -2028,6 +2028,8 @@ static PyMethodDef chain_methods[] = { reduce_doc}, {"__setstate__", (PyCFunction)chain_setstate, METH_O, setstate_doc}, + {"__class_getitem__", (PyCFunction)Py_GenericAlias, + METH_O|METH_CLASS, PyDoc_STR("See PEP 585")}, {NULL, NULL} /* sentinel */ }; |