mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
When 1.6 boosted the # of digits produced by repr(float), repr(complex)
apparently forgot to play along. Make complex act like float.
This commit is contained in:
parent
b3d6be9d93
commit
7069512bd0
2 changed files with 32 additions and 9 deletions
|
@ -314,7 +314,6 @@ PyFloat_AsString(char *buf, PyFloatObject *v)
|
|||
/* ARGSUSED */
|
||||
static int
|
||||
float_print(PyFloatObject *v, FILE *fp, int flags)
|
||||
/* flags -- not used but required by interface */
|
||||
{
|
||||
char buf[100];
|
||||
PyFloat_AsStringEx(buf, v, flags&Py_PRINT_RAW ? PREC_STR : PREC_REPR);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue