safeGlobals

core.safeGlobals.add_dictionary(namespace, dictionary)
core.safeGlobals.add_module(namespace, module)

Add module dictionary to the namespace. This is the equivalent for:

from module import *

This used for the GLOBALS variable.

Parameters:
  • namespace (dict) – namespace
  • module_dict (module) – module
core.safeGlobals.allow(key)
core.safeGlobals.safe_globals()

Previous topic

preview

Next topic

settings