[Python-checkins] r71191 - python/branches/py3k-short-float-repr/Objects/complexobject.c
mark.dickinson
python-checkins at python.org
Sat Apr 4 22:52:47 CEST 2009
Author: mark.dickinson
Date: Sat Apr 4 22:52:47 2009
New Revision: 71191
Log:
str(complex) should use 's' format, not 'g'
Modified:
python/branches/py3k-short-float-repr/Objects/complexobject.c
Modified: python/branches/py3k-short-float-repr/Objects/complexobject.c
==============================================================================
--- python/branches/py3k-short-float-repr/Objects/complexobject.c (original)
+++ python/branches/py3k-short-float-repr/Objects/complexobject.c Sat Apr 4 22:52:47 2009
@@ -444,7 +444,7 @@
static PyObject *
complex_str(PyComplexObject *v)
{
- return complex_format(v, 'g', PREC_STR);
+ return complex_format(v, 's', PREC_STR);
}
static long
More information about the Python-checkins
mailing list