diff options
author | Victor Stinner <vstinner@redhat.com> | 2019-06-25 01:01:08 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-25 01:01:08 (GMT) |
commit | 36456df13843c5b8a1fb5a6022ab9ed1fe2a11c5 (patch) | |
tree | 72d392c36e3deeff6a76966ecffca4623a1e72d6 /Doc | |
parent | 9fc720e5e4f772598013ea48a3f0d22b2b6b04fa (diff) | |
download | cpython-36456df13843c5b8a1fb5a6022ab9ed1fe2a11c5.zip cpython-36456df13843c5b8a1fb5a6022ab9ed1fe2a11c5.tar.gz cpython-36456df13843c5b8a1fb5a6022ab9ed1fe2a11c5.tar.bz2 |
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.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/sys.rst | 23 | ||||
-rw-r--r-- | Doc/whatsnew/3.9.rst | 5 |
2 files changed, 5 insertions, 23 deletions
diff --git a/Doc/library/sys.rst b/Doc/library/sys.rst index c073431..ea1f358 100644 --- a/Doc/library/sys.rst +++ b/Doc/library/sys.rst @@ -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 diff --git a/Doc/whatsnew/3.9.rst b/Doc/whatsnew/3.9.rst index b625f27..95e12ff 100644 --- a/Doc/whatsnew/3.9.rst +++ b/Doc/whatsnew/3.9.rst @@ -122,6 +122,11 @@ Deprecated Removed ======= +* The ``sys.getcheckinterval()`` and ``sys.setcheckinterval()`` functions have + been removed. They were deprecated since Python 3.2. Use + :func:`sys.getswitchinterval` and :func:`sys.setswitchinterval` instead. + (Contributed by Victor Stinner in :issue:`37392`.) + * The C function ``PyImport_Cleanup()`` has been removed. It was documented as: "Empty the module table. For internal use only." (Contributed by Victor Stinner in :issue:`36710`.) |