MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / symtable

Function symtable

tools/python-3.11.9-amd64/Lib/symtable.py:12–19  ·  view source on GitHub ↗

Return the toplevel *SymbolTable* for the source code. *filename* is the name of the file with the code and *compile_type* is the *compile()* mode argument.

(code, filename, compile_type)

Source from the content-addressed store, hash-verified

10__all__ = ["symtable", "SymbolTable", "Class", "Function", "Symbol"]
11
12def symtable(code, filename, compile_type):
13 """ Return the toplevel *SymbolTable* for the source code.
14
15 *filename* is the name of the file with the code
16 and *compile_type* is the *compile()* mode argument.
17 """
18 top = _symtable.symtable(code, filename, compile_type)
19 return _newSymbolTable(top, filename)
20
21class SymbolTableFactory:
22 def __init__(self):

Callers 1

symtable.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected