summaryrefslogtreecommitdiffstats
path: root/Python/sysmodule.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1995-01-09 17:46:13 (GMT)
committerGuido van Rossum <guido@python.org>1995-01-09 17:46:13 (GMT)
commita0d7a233981ce56c74d3fd6a4fb0cadac08a7654 (patch)
tree18108ce2fcbaeb6cb2f44765485083c0d685c616 /Python/sysmodule.c
parente791c2e44169f7f76819fef5571d4e3aca12d04c (diff)
downloadcpython-a0d7a233981ce56c74d3fd6a4fb0cadac08a7654.zip
cpython-a0d7a233981ce56c74d3fd6a4fb0cadac08a7654.tar.gz
cpython-a0d7a233981ce56c74d3fd6a4fb0cadac08a7654.tar.bz2
sys.check_interval=x -> sys.setcheckinterval(x)
Diffstat (limited to 'Python/sysmodule.c')
-rw-r--r--Python/sysmodule.c13
1 files changed, 13 insertions, 0 deletions
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 @@ Data members:
#include "osdefs.h"
object *sys_trace, *sys_profile;
+int sys_checkinterval;
static object *sysdict;
@@ -124,6 +125,17 @@ sys_setprofile(self, args)
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 @@ static struct methodlist sys_methods[] = {
#endif
{"setprofile", sys_setprofile},
{"settrace", sys_settrace},
+ {"setcheckinterval", sys_setcheckinterval},
{NULL, NULL} /* sentinel */
};