Ejemplo n.º 1
0
    def new_string(self, embedded_string):
        # Allocate a new string and set its class to be the string class
        result = String(self._nilObject, embedded_string)
        result.set_class(self._stringClass)

        # Return the freshly allocated string
        return result
Ejemplo n.º 2
0
 def new_string(embedded_string):
     return String(embedded_string)
Ejemplo n.º 3
0
 def setUp(self):
     self.string = String(Object(None), "test")