mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
bpo-37392: Remove sys.setcheckinterval() (GH-14355)
Remove sys.getcheckinterval() and sys.setcheckinterval() functions. They were deprecated since Python 3.2. Use sys.getswitchinterval() and sys.setswitchinterval() instead. Remove also check_interval field of the PyInterpreterState structure.
This commit is contained in:
parent
9fc720e5e4
commit
36456df138
9 changed files with 14 additions and 148 deletions
|
@ -551,14 +551,6 @@ always available.
|
|||
.. versionadded:: 3.7
|
||||
|
||||
|
||||
.. function:: getcheckinterval()
|
||||
|
||||
Return the interpreter's "check interval"; see :func:`setcheckinterval`.
|
||||
|
||||
.. deprecated:: 3.2
|
||||
Use :func:`getswitchinterval` instead.
|
||||
|
||||
|
||||
.. function:: getdefaultencoding()
|
||||
|
||||
Return the name of the current default string encoding used by the Unicode
|
||||
|
@ -1141,21 +1133,6 @@ always available.
|
|||
implement a dynamic prompt.
|
||||
|
||||
|
||||
.. function:: 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 ``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 ``<=`` 0 checks
|
||||
every virtual instruction, maximizing responsiveness as well as overhead.
|
||||
|
||||
.. deprecated:: 3.2
|
||||
This function doesn't have an effect anymore, as the internal logic for
|
||||
thread switching and asynchronous tasks has been rewritten. Use
|
||||
:func:`setswitchinterval` instead.
|
||||
|
||||
|
||||
.. function:: setdlopenflags(n)
|
||||
|
||||
Set the flags used by the interpreter for :c:func:`dlopen` calls, such as when
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue