mirror of
https://github.com/python/cpython
synced 2026-09-29 09:50:29 +03:00
Change float.__str__() and complex.__str__() to return
unicode objects.
This commit is contained in:
parent
346737fc19
commit
7696ed7b92
3 changed files with 3 additions and 2 deletions
|
|
@ -350,7 +350,7 @@ complex_str(PyComplexObject *v)
|
|||
{
|
||||
char buf[100];
|
||||
complex_to_buf(buf, sizeof(buf), v, PREC_STR);
|
||||
return PyString_FromString(buf);
|
||||
return PyUnicode_FromString(buf);
|
||||
}
|
||||
|
||||
static long
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue