]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
sys.setcheckinterval(x) instead of sys.check_interval = x
authorGuido van Rossum <guido@python.org>
Tue, 10 Jan 1995 10:50:58 +0000 (10:50 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 10 Jan 1995 10:50:58 +0000 (10:50 +0000)
Doc/lib/libsys.tex
Doc/libsys.tex

index 2ea4c379ac6d14bbebab6125256a852641894ce5..94674159ec8ce10d22ac69997a75469933174682 100644 (file)
@@ -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
index 2ea4c379ac6d14bbebab6125256a852641894ce5..94674159ec8ce10d22ac69997a75469933174682 100644 (file)
@@ -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