# HG changeset patch # User Paul Boddie # Date 1487004779 -3600 # Node ID 7c5a7efcaf14046c5f3fe9d923b58916d16f6384 # Parent e703b981b9b17ad4a3c72f6435c90c2e3499bf4c Added __str__ to the wrapper class to delegate to wrapped objects. diff -r e703b981b9b1 -r 7c5a7efcaf14 lib/__builtins__/core.py --- a/lib/__builtins__/core.py Mon Feb 13 16:59:17 2017 +0100 +++ b/lib/__builtins__/core.py Mon Feb 13 17:52:59 2017 +0100 @@ -134,6 +134,14 @@ self.__context__ = context self.__value__ = value + def __str__(self): + + "Return a string representation, referring to the wrapped object." + + return self.__value__.__str__() + + __repr__ = __str__ + class Exception: "The root of all exception types."