summaryrefslogtreecommitdiffstats
path: root/Objects/genericaliasobject.c
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2021-09-15 18:25:41 (GMT)
committerGitHub <noreply@github.com>2021-09-15 18:25:41 (GMT)
commit5dce51a8875d9639786741e962b3cb208596b096 (patch)
treedc3f0242389915b40d32eb4c196f3c8f2ea24766 /Objects/genericaliasobject.c
parent84a6061e29e9dc13909bdf6f541f48c2a4f1d410 (diff)
downloadcpython-5dce51a8875d9639786741e962b3cb208596b096.zip
cpython-5dce51a8875d9639786741e962b3cb208596b096.tar.gz
cpython-5dce51a8875d9639786741e962b3cb208596b096.tar.bz2
bpo-45167: Fix deepcopying of GenericAlias (GH-28324)
Diffstat (limited to 'Objects/genericaliasobject.c')
-rw-r--r--Objects/genericaliasobject.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Objects/genericaliasobject.c b/Objects/genericaliasobject.c
index 38b68e4..dbe5d89 100644
--- a/Objects/genericaliasobject.c
+++ b/Objects/genericaliasobject.c
@@ -418,6 +418,8 @@ static const char* const attr_exceptions[] = {
"__mro_entries__",
"__reduce_ex__", // needed so we don't look up object.__reduce_ex__
"__reduce__",
+ "__copy__",
+ "__deepcopy__",
NULL,
};