]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-43916: Apply Py_TPFLAGS_DISALLOW_INSTANTIATION to selected types (GH-25748)
authorErlend Egeberg Aasland <erlend.aasland@innova.no>
Fri, 30 Apr 2021 14:04:57 +0000 (16:04 +0200)
committerGitHub <noreply@github.com>
Fri, 30 Apr 2021 14:04:57 +0000 (16:04 +0200)
commit9746cda705decebc0ba572d95612796afd06dcd4
treed21d7082061099687919b8e744250bb39cf5613d
parent387397f8a4244c983f4568c16a28842e3268fe5d
bpo-43916: Apply Py_TPFLAGS_DISALLOW_INSTANTIATION to selected types (GH-25748)

Apply Py_TPFLAGS_DISALLOW_INSTANTIATION to the following types:

* _dbm.dbm
* _gdbm.gdbm
* _multibytecodec.MultibyteCodec
* _sre..SRE_Scanner
* _thread._localdummy
* _thread.lock
* _winapi.Overlapped
* array.arrayiterator
* functools.KeyWrapper
* functools._lru_list_elem
* pyexpat.xmlparser
* re.Match
* re.Pattern
* unicodedata.UCD
* zlib.Compress
* zlib.Decompress
20 files changed:
Lib/test/test_array.py
Lib/test/test_curses.py
Lib/test/test_dbm_gnu.py
Lib/test/test_functools.py
Lib/test/test_re.py
Lib/test/test_tcl.py
Lib/test/test_threading.py
Lib/test/test_unicodedata.py
Lib/test/test_zlib.py
Modules/_dbmmodule.c
Modules/_functoolsmodule.c
Modules/_gdbmmodule.c
Modules/_sre.c
Modules/_threadmodule.c
Modules/_winapi.c
Modules/arraymodule.c
Modules/cjkcodecs/multibytecodec.c
Modules/pyexpat.c
Modules/unicodedata.c
Modules/zlibmodule.c