diff options
author | Erlend Egeberg Aasland <erlend.aasland@innova.no> | 2021-04-30 14:04:57 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-30 14:04:57 (GMT) |
commit | 9746cda705decebc0ba572d95612796afd06dcd4 (patch) | |
tree | d21d7082061099687919b8e744250bb39cf5613d /Modules/unicodedata.c | |
parent | 387397f8a4244c983f4568c16a28842e3268fe5d (diff) | |
download | cpython-9746cda705decebc0ba572d95612796afd06dcd4.zip cpython-9746cda705decebc0ba572d95612796afd06dcd4.tar.gz cpython-9746cda705decebc0ba572d95612796afd06dcd4.tar.bz2 |
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
Diffstat (limited to 'Modules/unicodedata.c')
-rw-r--r-- | Modules/unicodedata.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/unicodedata.c b/Modules/unicodedata.c index aebae7d..1a41e1c 100644 --- a/Modules/unicodedata.c +++ b/Modules/unicodedata.c @@ -1454,7 +1454,7 @@ static PyType_Slot ucd_type_slots[] = { static PyType_Spec ucd_type_spec = { .name = "unicodedata.UCD", .basicsize = sizeof(PreviousDBVersion), - .flags = Py_TPFLAGS_DEFAULT, + .flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_DISALLOW_INSTANTIATION, .slots = ucd_type_slots }; |