commit | 7696ed7b926dd73700ff9972d7a47beb7ec13191 | [log] [tgz] |
---|---|---|
author | Walter Dörwald <walter@livinglogic.de> | Thu May 31 15:51:35 2007 +0000 |
committer | Walter Dörwald <walter@livinglogic.de> | Thu May 31 15:51:35 2007 +0000 |
tree | 3e1a8bcb4d276591fcb62b40e26becd0784e5958 | |
parent | 346737fc193c9a2e7033519d9767132bc0c9312b [diff] [blame] |
Change float.__str__() and complex.__str__() to return unicode objects.
diff --git a/Objects/floatobject.c b/Objects/floatobject.c index 679e93e..b996863 100644 --- a/Objects/floatobject.c +++ b/Objects/floatobject.c
@@ -310,7 +310,7 @@ { char buf[100]; format_float(buf, sizeof(buf), v, PREC_STR); - return PyString_FromString(buf); + return PyUnicode_FromString(buf); } /* Comparison is pretty much a nightmare. When comparing float to float,