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

threading.gettrace

Prev: threading.getprofile | Up: threading | Next: threading.local
Rel: threading.active_count, threading.Barrier, threading.BoundedSemaphore, threading.BrokenBarrierError
Ref: docs.python.org — threading.gettrace
Tags: #public #python3 #stdlib #threading


Import

import threading
from threading import gettrace

Signature & Overview

threading.gettrace()

Get the trace function as set by threading.settrace().

Usage

import threading

# Returns the trace function registered via threading.settrace() (or None)
assert threading.gettrace() is None or callable(threading.gettrace())

Gotchas

REPL Inspect

from threading import gettrace
help(gettrace)

Linked from

Related notes