]> granicus.if.org Git - python/commitdiff
Correct documentation of check interval - it's 100 by default, not 10 any
authorSkip Montanaro <skip@pobox.com>
Wed, 2 Jul 2003 21:38:34 +0000 (21:38 +0000)
committerSkip Montanaro <skip@pobox.com>
Wed, 2 Jul 2003 21:38:34 +0000 (21:38 +0000)
longer.  Pointed out by Alex Martelli.

Doc/api/init.tex
Doc/lib/libsys.tex
Misc/cheatsheet

index 44bfa3ecb94ba7c25e4cbe1c75d3a94701ac364d..f7d797c939ed1d66476eba4f8ef7e0d889452f48 100644 (file)
@@ -348,7 +348,7 @@ Therefore, the rule exists that only the thread that has acquired the
 global interpreter lock may operate on Python objects or call Python/C
 API functions.  In order to support multi-threaded Python programs,
 the interpreter regularly releases and reacquires the lock --- by
-default, every ten bytecode instructions (this can be changed with
+default, every 100 bytecode instructions (this can be changed with
 \withsubitem{(in module sys)}{\ttindex{setcheckinterval()}}
 \function{sys.setcheckinterval()}).  The lock is also released and
 reacquired around potentially blocking I/O operations like reading or
index 8a60cb23fa6f5bc7fcf6336756fb85f4cdd3b808..558fb36e0246357ca6cac2a9cf24bba82baf52a8 100644 (file)
@@ -394,8 +394,8 @@ else:
 \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 \code{10},
-  meaning the check is performed every 10 Python virtual instructions.
+  as thread switches and signal handlers.  The default is \code{100},
+  meaning the check is performed every 100 Python virtual instructions.
   Setting it to a larger value may increase performance for programs
   using threads.  Setting it to a value \code{<=} 0 checks every
   virtual instruction, maximizing responsiveness as well as overhead.
index 8563c5a44e3fe4b6270819a6b355e8369a972d1a..ee4b8e04611425176e965814c7504a8e28d50a4b 100644 (file)
@@ -1361,7 +1361,7 @@ getrefcount(object Returns the reference count of the object. Generally one
 )                  higher than you might expect, because of object arg temp
                    reference.
 setcheckinterval(  Sets the interpreter's thread switching interval (in number
-interval)          of virtual code instructions, default:10).
+interval)          of virtual code instructions, default:100).
 settrace(func)     Sets a trace function: called before each line ofcode is
                    exited.
 setprofile(func)   Sets a profile function for performance profiling.