Back to index

python3.2  3.2.2
Functions
symtable Namespace Reference

Functions

def symtable

Detailed Description

Interface to the compiler's internal symbol tables

Function Documentation

def symtable.symtable (   code,
  filename,
  compile_type 
)

Definition at line 12 of file symtable.py.

00012 
00013 def symtable(code, filename, compile_type):
00014     raw = _symtable.symtable(code, filename, compile_type)
00015     for top in raw.values():
00016         if top.name == 'top':
00017             break
00018     return _newSymbolTable(top, filename)