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

symtable.SymbolTable

Prev: symtable.Symbol | Up: symtable | Next: symtable.SymbolTableType
Rel: symtable.Class, symtable.Function, symtable.Symbol, symtable.SymbolTableType
Ref: docs.python.org — symtable.SymbolTable
Tags: #public #python3 #stdlib #symtable


Import

import symtable
from symtable import SymbolTable

Signature & Overview

symtable.SymbolTable(raw_table, filename)

symtable.SymbolTable class.

Methods & Attributes

Usage

import symtable

tbl = symtable.symtable('x = 1', '<m>', 'exec')
assert isinstance(tbl, symtable.SymbolTable) and 'x' in tbl.get_identifiers()

Gotchas

REPL Inspect

from symtable import SymbolTable
help(SymbolTable)

Linked from

Related notes