Change float.__str__() and complex.__str__() to return

unicode objects.
This commit is contained in:
Walter Dörwald 2007-05-31 15:51:35 +00:00
parent 346737fc19
commit 7696ed7b92
3 changed files with 3 additions and 2 deletions

View file

@ -310,7 +310,7 @@ float_str(PyFloatObject *v)
{
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,