def install_special_builtins(self): """Adds some unusual builtin cases that involve the interpreter itself.""" for (name, function) in self.get_special_builtins(): builtins.installPythonFunction(name, function, self.get_environment(), wrapDefaults=False)
def install_function(self, name, function): """Installs a Python function into the toplevel environment.""" builtins.installPythonFunction(name, function, self.get_environment())