Exemplo n.º 1
0
 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)
Exemplo n.º 2
0
 def install_function(self, name, function):
     """Installs a Python function into the toplevel environment."""
     builtins.installPythonFunction(name, function, self.get_environment())
Exemplo n.º 3
0
 def install_function(self, name, function):
     """Installs a Python function into the toplevel environment."""
     builtins.installPythonFunction(name, function, self.get_environment())
Exemplo n.º 4
0
 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)