15 lines
239 B
Python
15 lines
239 B
Python
|
_symbols = {}
|
||
|
|
||
|
def has(name):
|
||
|
return name in _symbols
|
||
|
|
||
|
def get(name):
|
||
|
if name in _symbols:
|
||
|
return _symbols[name]
|
||
|
else:
|
||
|
_symbols[name] = None
|
||
|
return None
|
||
|
|
||
|
def set(name, value):
|
||
|
_symbols[name] = value
|