]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-43908: check_set_special_type_attr() checks Py_TPFLAGS_IMMUTABLETYPE (GH-25743)
authorErlend Egeberg Aasland <erlend.aasland@innova.no>
Fri, 30 Apr 2021 13:25:43 +0000 (15:25 +0200)
committerGitHub <noreply@github.com>
Fri, 30 Apr 2021 13:25:43 +0000 (15:25 +0200)
commit64141382ecbad665d5738ff26d15505f3427c724
tree4e651b277dd979d635cc55fa5b5bf33864a20d69
parent9032cf5cb1e33c0349089cfb0f6bf11ed3c30e86
bpo-43908: check_set_special_type_attr() checks Py_TPFLAGS_IMMUTABLETYPE (GH-25743)

check_set_special_type_attr() and type_set_annotations()
now check for immutable flag (Py_TPFLAGS_IMMUTABLETYPE).

Co-authored-by: Victor Stinner <vstinner@python.org>
Lib/test/test_descr.py
Objects/typeobject.c