1.1 --- a/rsvp.py Fri Feb 20 01:24:14 2009 +0100
1.2 +++ b/rsvp.py Sun Feb 22 02:03:17 2009 +0100
1.3 @@ -560,7 +560,7 @@
1.4
1.5 # Test operand suitability.
1.6
1.7 - if not self._CheckInstance(left, self.int_class) and self._CheckInstance(right, self.int_class):
1.8 + if not self._CheckInstance(left, self.int_instance_location) and self._CheckInstance(right, self.int_instance_location):
1.9 self.exception = self.type_error
1.10 return self.RaiseException()
1.11
1.12 @@ -574,9 +574,10 @@
1.13 addr = self._MakeObject(2, self.int_instance_location)
1.14 self.save(addr + 1, self.load(left_data) + self.load(right_data))
1.15
1.16 - # Return the new object (with a null context).
1.17 + # Return the new object.
1.18 + # Introduce object as context for the new object.
1.19
1.20 - self.result = None, addr
1.21 + self.result = addr, addr
1.22
1.23 native_functions = {
1.24 "__builtins__.object.__init__" : builtins_object_init,