mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03: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
1
Lib/test/output/test_symtable
Normal file
1
Lib/test/output/test_symtable
Normal file
|
|
@ -0,0 +1 @@
|
|||
test_symtable
|
||||
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