On this page
  1. types.FrameType
  2. Import
  3. Signature & Overview
  4. Methods & Attributes
  5. Usage
  6. Gotchas
  7. REPL Inspect

types.FrameType

Prev: types.EllipsisType | Up: types | Next: types.FunctionType
Rel: types.AsyncGeneratorType, types.BuiltinFunctionType, types.BuiltinMethodType, types.CapsuleType
Ref: docs.python.org — types.FrameType
Tags: #public #python3 #stdlib #types


Import

import types
from types import FrameType

Signature & Overview

types.FrameType()

types.FrameType class.

Methods & Attributes

Usage

import inspect, types

frame = inspect.currentframe()
try:
    assert isinstance(frame, types.FrameType)
finally:
    del frame

Gotchas

REPL Inspect

from types import FrameType
help(FrameType)

Linked from

Related notes