mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Add minimal interface to symtable: _symtable module.
This commit is contained in:
parent
4b38da664c
commit
5e7cb240af
4 changed files with 82 additions and 0 deletions
8
Lib/test/test_symtable.py
Normal file
8
Lib/test/test_symtable.py
Normal file
|
@ -0,0 +1,8 @@
|
|||
from test_support import verify
|
||||
|
||||
import _symtable
|
||||
|
||||
symbols, scopes = _symtable.symtable("def f(x): return x", "?", "exec")
|
||||
|
||||
verify(symbols.has_key(0))
|
||||
verify(scopes.has_key(0))
|
Loading…
Add table
Add a link
Reference in a new issue