bpo-45167: Fix deepcopying of GenericAlias (GH-28324)

This commit is contained in:
Serhiy Storchaka 2021-09-15 21:25:41 +03:00 committed by GitHub
parent 84a6061e29
commit 5dce51a887
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 28 additions and 5 deletions

View file

@ -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,
};