mirror of
https://github.com/python/cpython.git
synced 2025-07-30 06:34:15 +00:00
newSymbolTable is not public API
This commit is contained in:
parent
e977ad4d7b
commit
86da890a9e
1 changed files with 2 additions and 3 deletions
|
@ -8,8 +8,7 @@ from _symtable import (USE, DEF_GLOBAL, DEF_LOCAL, DEF_PARAM,
|
||||||
import warnings
|
import warnings
|
||||||
import weakref
|
import weakref
|
||||||
|
|
||||||
__all__ = ["symtable", "SymbolTable", "newSymbolTable", "Class",
|
__all__ = ["symtable", "SymbolTable", "Class", "Function", "Symbol"]
|
||||||
"Function", "Symbol"]
|
|
||||||
|
|
||||||
def symtable(code, filename, compile_type):
|
def symtable(code, filename, compile_type):
|
||||||
raw = _symtable.symtable(code, filename, compile_type)
|
raw = _symtable.symtable(code, filename, compile_type)
|
||||||
|
@ -36,7 +35,7 @@ class SymbolTableFactory:
|
||||||
obj = self.__memo[key] = self.new(table, filename)
|
obj = self.__memo[key] = self.new(table, filename)
|
||||||
return obj
|
return obj
|
||||||
|
|
||||||
newSymbolTable = SymbolTableFactory()
|
_newSymbolTable = SymbolTableFactory()
|
||||||
|
|
||||||
|
|
||||||
class SymbolTable(object):
|
class SymbolTable(object):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue