diff options
author | Jelle Zijlstra <jelle.zijlstra@gmail.com> | 2022-11-01 04:10:18 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-01 04:10:18 (GMT) |
commit | 5cf317ade1e1b26ee02621ed84d29a73181631dc (patch) | |
tree | 077cd8c371f0541c547bdf952b1bb6231583cc86 /Modules | |
parent | 7640ede177682a06f03694478d64c819e39e03d9 (diff) | |
download | cpython-5cf317ade1e1b26ee02621ed84d29a73181631dc.zip cpython-5cf317ade1e1b26ee02621ed84d29a73181631dc.tar.gz cpython-5cf317ade1e1b26ee02621ed84d29a73181631dc.tar.bz2 |
gh-98658: Add __class_getitem__ to array.array (#98661)
Closes #98658
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/arraymodule.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/arraymodule.c b/Modules/arraymodule.c index 924fbf2..d60cf26 100644 --- a/Modules/arraymodule.c +++ b/Modules/arraymodule.c @@ -2303,6 +2303,7 @@ static PyMethodDef array_methods[] = { ARRAY_ARRAY_TOBYTES_METHODDEF ARRAY_ARRAY_TOUNICODE_METHODDEF ARRAY_ARRAY___SIZEOF___METHODDEF + {"__class_getitem__", Py_GenericAlias, METH_O|METH_CLASS, PyDoc_STR("See PEP 585")}, {NULL, NULL} /* sentinel */ }; |