try to initalize all builtin types with PyType_Ready to avoid problems like #5787
diff --git a/Misc/NEWS b/Misc/NEWS
index 58197de..c2a07ec 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -12,6 +12,9 @@
 Core and Builtins
 -----------------
 
+- Issue #5787: object.__getattribute__(some_type, "__bases__") segfaulted on
+  some builtin types.
+
 - Issue #1869: fix a couple of minor round() issues.  round(5e15+1)
     was giving 5e15+2; round(-0.0) was losing the sign of the zero.