sys.check_interval=x -> sys.setcheckinterval(x)
diff --git a/Python/sysmodule.c b/Python/sysmodule.c
index ea67363..5d7955b 100644
--- a/Python/sysmodule.c
+++ b/Python/sysmodule.c
@@ -45,6 +45,7 @@
#include "osdefs.h"
object *sys_trace, *sys_profile;
+int sys_checkinterval;
static object *sysdict;
@@ -124,6 +125,17 @@
return None;
}
+static object *
+sys_setcheckinterval(self, args)
+ object *self;
+ object *args;
+{
+ if (!newgetargs(args, "i", &sys_checkinterval))
+ return NULL;
+ INCREF(None);
+ return None;
+}
+
#ifdef USE_MALLOPT
/* Link with -lmalloc (or -lmpc) on an SGI */
#include <malloc.h>
@@ -149,6 +161,7 @@
#endif
{"setprofile", sys_setprofile},
{"settrace", sys_settrace},
+ {"setcheckinterval", sys_setcheckinterval},
{NULL, NULL} /* sentinel */
};