Exemplo n.º 1
0
    def createProvidedVariable(self, variable_name):
        assert variable_name not in self.variables

        result = Variables.ModuleVariable(module=self, variable_name=variable_name)

        self.variables[variable_name] = result

        return result
Exemplo n.º 2
0
    def createProvidedVariable(self, variable_name):
        result = Variables.ModuleVariable(module=self,
                                          variable_name=variable_name)

        assert result not in self.variables
        self.variables.add(result)

        return result