At Guido's suggestion, here's a new C API function, PyObject_Dir(), like
__builtin__.dir().  Moved the guts from bltinmodule.c to object.c.
diff --git a/Misc/NEWS b/Misc/NEWS
index a8f05c7..7d44a59 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -96,7 +96,9 @@
 
 Build
 
-API
+C API
+
+- New function PyObject_Dir(obj), like Python __builtin__.dir(obj).
 
 - Note that PyLong_AsDouble can fail!  This has always been true, but no
   callers checked for it.  It's more likely to fail now, because overflow