Mercurial > cpython-lru_cache-weakref
diff Objects/floatobject.c @ 41920:71d861ee9ff0
Change float.__str__() and complex.__str__() to return
unicode objects.
| author | Walter Dörwald <walter@livinglogic.de> |
|---|---|
| date | Thu, 31 May 2007 15:51:35 +0000 |
| parents | b29d71d43c80 |
| children | 8fc93215c0cc |
line wrap: on
line diff
--- a/Objects/floatobject.c Thu May 31 10:44:43 2007 +0000 +++ b/Objects/floatobject.c Thu May 31 15:51:35 2007 +0000 @@ -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,
