Staging
v0.8.1
https://github.com/python/cpython
Raw File
Tip revision: 4ce90b3a994e3eef18e43ac5a1f6c9acd0b16b8c authored by cvs2svn on 30 May 2003, 20:57:36 UTC
This commit was manufactured by cvs2svn to create tag 'r223'.
Tip revision: 4ce90b3
test_symtable.py
from test_support import verify

import _symtable

symbols = _symtable.symtable("def f(x): return x", "?", "exec")

verify(symbols[0].name == "global")
verify(len([ste for ste in symbols.values() if ste.name == "f"]) == 1)
back to top