Kaydet (Commit) 9c51e412 authored tarafından Guido van Rossum's avatar Guido van Rossum

sys.setcheckinterval(x) instead of sys.check_interval = x

üst f8601620
......@@ -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
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment