Hai Shi <shihai1...@126.com> added the comment:
>Ah, sorry, I overlooked the flags. It's Okay. >This does beg the question: what else from PyType_Spec will be needed? I guess we don't want to allow additional slots/methods. +1. >Also, note that converting the stdlib to heap types is suspended, pending a >PEP. Can I do something for this pending PEP? > The Py_TPFLAGS_DISALLOW_INSTANTIATION is very specific; do you have other > examples that need this? I only find this bpo-44532 :( I guess the outside user will use it MAYBE. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue45113> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com