From 9c51e412015960842105e0c5de33f2b9ee432353 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Tue, 10 Jan 1995 10:50:58 +0000 Subject: [PATCH] sys.setcheckinterval(x) instead of sys.check_interval = x --- Doc/lib/libsys.tex | 20 ++++++++++---------- Doc/libsys.tex | 20 ++++++++++---------- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/Doc/lib/libsys.tex b/Doc/lib/libsys.tex index 2ea4c379ac6..94674159ec8 100644 --- a/Doc/lib/libsys.tex +++ b/Doc/lib/libsys.tex @@ -20,16 +20,6 @@ It is always available. modules.) \end{datadesc} -\begin{datadesc}{check_interval} -When this variable is set to an integer value, it determines how often -the interpreter checks for periodic things such as thread switches and -signal handlers. The default is 10, meaning the check is performed -every 10 Python virtual instructions. Setting this to a large value -may increase performance for programs using threads. Setting it to a -value <= 0 checks every virtual instruction, maximizing responsiveness -as well as overhead. -\end{datadesc} - \begin{datadesc}{exc_type} \dataline{exc_value} \dataline{exc_traceback} @@ -92,6 +82,16 @@ as well as overhead. \code{'>>> '} and \code{'... '}. \end{datadesc} +\begin{funcdesc}{setcheckinterval}{interval} +Set the interpreter's ``check interval''. This integer value +determines how often the interpreter checks for periodic things such +as thread switches and signal handlers. The default is 10, meaning +the check is performed every 10 Python virtual instructions. Setting +it to a larger value may increase performance for programs using +threads. Setting it to a value <= 0 checks every virtual instruction, +maximizing responsiveness as well as overhead. +\end{datadesc} + \begin{funcdesc}{settrace}{tracefunc} Set the system's trace function, which allows you to implement a Python source code debugger in Python. The standard modules diff --git a/Doc/libsys.tex b/Doc/libsys.tex index 2ea4c379ac6..94674159ec8 100644 --- a/Doc/libsys.tex +++ b/Doc/libsys.tex @@ -20,16 +20,6 @@ It is always available. modules.) \end{datadesc} -\begin{datadesc}{check_interval} -When this variable is set to an integer value, it determines how often -the interpreter checks for periodic things such as thread switches and -signal handlers. The default is 10, meaning the check is performed -every 10 Python virtual instructions. Setting this to a large value -may increase performance for programs using threads. Setting it to a -value <= 0 checks every virtual instruction, maximizing responsiveness -as well as overhead. -\end{datadesc} - \begin{datadesc}{exc_type} \dataline{exc_value} \dataline{exc_traceback} @@ -92,6 +82,16 @@ as well as overhead. \code{'>>> '} and \code{'... '}. \end{datadesc} +\begin{funcdesc}{setcheckinterval}{interval} +Set the interpreter's ``check interval''. This integer value +determines how often the interpreter checks for periodic things such +as thread switches and signal handlers. The default is 10, meaning +the check is performed every 10 Python virtual instructions. Setting +it to a larger value may increase performance for programs using +threads. Setting it to a value <= 0 checks every virtual instruction, +maximizing responsiveness as well as overhead. +\end{datadesc} + \begin{funcdesc}{settrace}{tracefunc} Set the system's trace function, which allows you to implement a Python source code debugger in Python. The standard modules