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:
Tim Peters 2001-03-11 08:37:29 +00:00
parent b3d6be9d93
commit 7069512bd0
2 changed files with 32 additions and 9 deletions

View file

@ -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);