On this page
  1. sys.getswitchinterval
  2. Import
  3. Signature & Overview
  4. Usage
  5. Gotchas
  6. REPL Inspect

sys.getswitchinterval

Prev: sys.getsizeof | Up: sys | Next: sys.gettrace
Rel: sys.activate_stack_trampoline, sys.addaudithook, sys.audit, sys.breakpointhook
Ref: docs.python.org — sys.getswitchinterval
Tags: #public #python3 #stdlib #sys


Import

import sys
from sys import getswitchinterval

Signature & Overview

sys.getswitchinterval()

Return the current thread switch interval; see sys.setswitchinterval().

Usage

import sys

interval = sys.getswitchinterval()
assert interval > 0   # default is 0.005 seconds (5 ms)

Gotchas

REPL Inspect

from sys import getswitchinterval
help(getswitchinterval)

Linked from

Related notes