diff options
author | Ethan Smith <ethan@ethanhs.me> | 2020-04-10 04:25:53 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-10 04:25:53 (GMT) |
commit | 7c4185d62d4aec486d82c3ad02acd878db2d3537 (patch) | |
tree | d74318ca0c3e092652e64b9fe174edc0bcef9586 /Modules/mmapmodule.c | |
parent | 2fa67df605e4b0803e7e3aac0b85d851b4b4e09a (diff) | |
download | cpython-7c4185d62d4aec486d82c3ad02acd878db2d3537.zip cpython-7c4185d62d4aec486d82c3ad02acd878db2d3537.tar.gz cpython-7c4185d62d4aec486d82c3ad02acd878db2d3537.tar.bz2 |
bpo-39481: PEP 585 for enumerate, AsyncGeneratorType, mmap (GH-19421)
Diffstat (limited to 'Modules/mmapmodule.c')
-rw-r--r-- | Modules/mmapmodule.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/mmapmodule.c b/Modules/mmapmodule.c index a5c0ae0..a1267bd 100644 --- a/Modules/mmapmodule.c +++ b/Modules/mmapmodule.c @@ -816,6 +816,8 @@ static struct PyMethodDef mmap_object_methods[] = { #ifdef MS_WINDOWS {"__sizeof__", (PyCFunction) mmap__sizeof__method, METH_NOARGS}, #endif + {"__class_getitem__", (PyCFunction)Py_GenericAlias, METH_O|METH_CLASS, + PyDoc_STR("See PEP 585")}, {NULL, NULL} /* sentinel */ }; |