mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +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
|
@ -541,10 +541,12 @@ def main():
|
|||
help="run I/O bandwidth tests")
|
||||
parser.add_option("-i", "--interval",
|
||||
action="store", type="int", dest="check_interval", default=None,
|
||||
help="sys.setcheckinterval() value")
|
||||
help="sys.setcheckinterval() value "
|
||||
"(Python 3.8 and older)")
|
||||
parser.add_option("-I", "--switch-interval",
|
||||
action="store", type="float", dest="switch_interval", default=None,
|
||||
help="sys.setswitchinterval() value")
|
||||
help="sys.setswitchinterval() value "
|
||||
"(Python 3.2 and newer)")
|
||||
parser.add_option("-n", "--num-threads",
|
||||
action="store", type="int", dest="nthreads", default=4,
|
||||
help="max number of threads in tests")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue