STINNER Victor <vstin...@python.org> added the comment:
In Python 3.11, 41 types are declared explicitly with the Py_TPFLAGS_DISALLOW_INSTANTIATION flag: * _curses_panel.panel * _dbm.dbm * _gdbm.gdbm * _hashlib.HASH * _hashlib.HASHXOF * _hashlib.HMAC * _md5.md5 * _multibytecodec.MultibyteCodec * _sha1.sha1 * _sha256.sha224 * _sha256.sha256 * _sha512.sha384 * _sha512.sha512 * _sre.SRE_Scanner * _ssl.Certificate * _thread._localdummy * _thread.lock * _tkinter.Tcl_Obj * _tkinter.tkapp * _tkinter.tktimertoken * _winapi.Overlapped * _xxsubinterpreters.ChannelID * array.arrayiterator * curses.ncurses_version * functools.KeyWrapper * functools._lru_list_elem * os.DirEntry * os.ScandirIterator * pyexpat.xmlparser * re.Match * re.Pattern * select.devpoll * select.poll * sqlite3.Statement * stderrprinter * sys.flags * sys.getwindowsversion * sys.version_info * unicodedata.UCD * zlib.Compress * zlib.Decompress ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue43916> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com