bpo-43916: Select now uses Py_TPFLAGS_DISALLOW_INSTANTIATION by erlend-aasland · Pull Request #25750 · python/cpython
static PyObject * poll_new(PyTypeObject *type, PyObject *args, PyObject *kwargs) { PyErr_Format(PyExc_TypeError, "Cannot create '%.200s' instances", _PyType_Name(type)); return NULL; }
static void poll_dealloc(pollObject *self) {
static PyType_Spec poll_Type_spec = { "select.poll", sizeof(pollObject), 0, Py_TPFLAGS_DEFAULT, poll_Type_slots .name = "select.poll", .basicsize = sizeof(pollObject), .flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_DISALLOW_INSTANTIATION, .slots = poll_Type_slots, };
#ifdef HAVE_SYS_DEVPOLL_H