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/complexobject.c b/Objects/complexobject.c index 0d4b755..ed2e475 100644 --- a/Objects/complexobject.c +++ b/Objects/complexobject.c
@@ -350,7 +350,7 @@ { char buf[100]; complex_to_buf(buf, sizeof(buf), v, PREC_STR); - return PyString_FromString(buf); + return PyUnicode_FromString(buf); } static long