Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: 6f3e109f2cad953efb467f0afbb7b61b89914f64 authored by cvs2svn on 22 May 2003, 19:13:35 UTC
This commit was manufactured by cvs2svn to create tag 'r223c1'.
Tip revision: 6f3e109
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