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