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

sys.get_coroutine_origin_tracking_depth

Prev: sys.get_asyncgen_hooks | Up: sys | Next: sys.get_int_max_str_digits
Rel: sys.activate_stack_trampoline, sys.addaudithook, sys.audit, sys.breakpointhook
Ref: docs.python.org — sys.get_coroutine_origin_tracking_depth
Tags: #public #python3 #stdlib #sys


Import

import sys
from sys import get_coroutine_origin_tracking_depth

Signature & Overview

sys.get_coroutine_origin_tracking_depth()

Check status of origin tracking for coroutine objects in this thread.

Usage

import sys

depth = sys.get_coroutine_origin_tracking_depth()
assert isinstance(depth, int) and depth >= 0

Gotchas

REPL Inspect

from sys import get_coroutine_origin_tracking_depth
help(get_coroutine_origin_tracking_depth)

Linked from

Related notes