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

inspect.getasyncgenlocals

Prev: inspect.getargvalues | Up: inspect | Next: inspect.getasyncgenstate
Rel: inspect.ArgInfo, inspect.Arguments, inspect.Attribute, inspect.BlockFinder
Ref: docs.python.org — inspect.getasyncgenlocals
Tags: #public #python3 #stdlib #inspect


Import

import inspect
from inspect import getasyncgenlocals

Signature & Overview

inspect.getasyncgenlocals(agen)

Get the mapping of asynchronous generator local variables to their current values.

Usage

import inspect

async def agen():
    x = 42
    yield x

g = agen()
assert inspect.getasyncgenlocals(g) == {}

Gotchas

REPL Inspect

from inspect import getasyncgenlocals
help(getasyncgenlocals)

Linked from

Related notes