Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9c51e41

Browse files
committed
sys.setcheckinterval(x) instead of sys.check_interval = x
1 parent f860162 commit 9c51e41

2 files changed

Lines changed: 20 additions & 20 deletions

File tree

Doc/lib/libsys.tex

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,6 @@ \section{Built-in Module \sectcode{sys}}
2020
modules.)
2121
\end{datadesc}
2222

23-
\begin{datadesc}{check_interval}
24-
When this variable is set to an integer value, it determines how often
25-
the interpreter checks for periodic things such as thread switches and
26-
signal handlers. The default is 10, meaning the check is performed
27-
every 10 Python virtual instructions. Setting this to a large value
28-
may increase performance for programs using threads. Setting it to a
29-
value <= 0 checks every virtual instruction, maximizing responsiveness
30-
as well as overhead.
31-
\end{datadesc}
32-
3323
\begin{datadesc}{exc_type}
3424
\dataline{exc_value}
3525
\dataline{exc_traceback}
@@ -92,6 +82,16 @@ \section{Built-in Module \sectcode{sys}}
9282
\code{'>>> '} and \code{'... '}.
9383
\end{datadesc}
9484

85+
\begin{funcdesc}{setcheckinterval}{interval}
86+
Set the interpreter's ``check interval''. This integer value
87+
determines how often the interpreter checks for periodic things such
88+
as thread switches and signal handlers. The default is 10, meaning
89+
the check is performed every 10 Python virtual instructions. Setting
90+
it to a larger value may increase performance for programs using
91+
threads. Setting it to a value <= 0 checks every virtual instruction,
92+
maximizing responsiveness as well as overhead.
93+
\end{datadesc}
94+
9595
\begin{funcdesc}{settrace}{tracefunc}
9696
Set the system's trace function, which allows you to implement a
9797
Python source code debugger in Python. The standard modules

Doc/libsys.tex

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,6 @@ \section{Built-in Module \sectcode{sys}}
2020
modules.)
2121
\end{datadesc}
2222

23-
\begin{datadesc}{check_interval}
24-
When this variable is set to an integer value, it determines how often
25-
the interpreter checks for periodic things such as thread switches and
26-
signal handlers. The default is 10, meaning the check is performed
27-
every 10 Python virtual instructions. Setting this to a large value
28-
may increase performance for programs using threads. Setting it to a
29-
value <= 0 checks every virtual instruction, maximizing responsiveness
30-
as well as overhead.
31-
\end{datadesc}
32-
3323
\begin{datadesc}{exc_type}
3424
\dataline{exc_value}
3525
\dataline{exc_traceback}
@@ -92,6 +82,16 @@ \section{Built-in Module \sectcode{sys}}
9282
\code{'>>> '} and \code{'... '}.
9383
\end{datadesc}
9484

85+
\begin{funcdesc}{setcheckinterval}{interval}
86+
Set the interpreter's ``check interval''. This integer value
87+
determines how often the interpreter checks for periodic things such
88+
as thread switches and signal handlers. The default is 10, meaning
89+
the check is performed every 10 Python virtual instructions. Setting
90+
it to a larger value may increase performance for programs using
91+
threads. Setting it to a value <= 0 checks every virtual instruction,
92+
maximizing responsiveness as well as overhead.
93+
\end{datadesc}
94+
9595
\begin{funcdesc}{settrace}{tracefunc}
9696
Set the system's trace function, which allows you to implement a
9797
Python source code debugger in Python. The standard modules

0 commit comments

Comments
 (0)