initialize more global type objects (closes #16369)
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
index 3ef9c9b..35b424e 100644
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -10079,6 +10079,12 @@
);
PyType_Ready(&EncodingMapType);
+
+ if (PyType_Ready(&PyFieldNameIter_Type) < 0)
+ Py_FatalError("Can't initialize field name iterator type");
+
+ if (PyType_Ready(&PyFormatterIter_Type) < 0)
+ Py_FatalError("Can't initialize formatter iter type");
}
/* Finalize the Unicode implementation */