[Python-checkins] r71219 - python/branches/py3k-short-float-repr/Objects/unicodeobject.c
mark.dickinson
python-checkins at python.org
Sun Apr 5 12:53:29 CEST 2009
Author: mark.dickinson
Date: Sun Apr 5 12:53:29 2009
New Revision: 71219
Log:
Restore f->g switch for numbers >= 1e50
Modified:
python/branches/py3k-short-float-repr/Objects/unicodeobject.c
Modified: python/branches/py3k-short-float-repr/Objects/unicodeobject.c
==============================================================================
--- python/branches/py3k-short-float-repr/Objects/unicodeobject.c (original)
+++ python/branches/py3k-short-float-repr/Objects/unicodeobject.c Sun Apr 5 12:53:29 2009
@@ -8836,6 +8836,9 @@
goto done;
}
+ if (type == 'f' && fabs(x) >= 1e50)
+ type = 'g';
+
if (((type == 'g' || type == 'G') &&
buflen <= (size_t)10 + (size_t)prec) ||
((type == 'f' || type == 'F') &&
More information about the Python-checkins
mailing list