summaryrefslogtreecommitdiffstats
path: root/Include/floatobject.h
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2010-08-04 20:56:28 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2010-08-04 20:56:28 (GMT)
commit388122d43b2b6bb41774d9680b9ad3bc05682f85 (patch)
tree4b3059b3dbd916fde44702e732f507788c433fbf /Include/floatobject.h
parentb6c50749207688902a6378958da474f7c31f179d (diff)
downloadcpython-388122d43b2b6bb41774d9680b9ad3bc05682f85.zip
cpython-388122d43b2b6bb41774d9680b9ad3bc05682f85.tar.gz
cpython-388122d43b2b6bb41774d9680b9ad3bc05682f85.tar.bz2
Issue #9337: Make float.__str__ identical to float.__repr__.
(And similarly for complex numbers.)
Diffstat (limited to 'Include/floatobject.h')
-rw-r--r--Include/floatobject.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/Include/floatobject.h b/Include/floatobject.h
index 5b8d1a1..364b913 100644
--- a/Include/floatobject.h
+++ b/Include/floatobject.h
@@ -21,12 +21,6 @@ PyAPI_DATA(PyTypeObject) PyFloat_Type;
#define PyFloat_Check(op) PyObject_TypeCheck(op, &PyFloat_Type)
#define PyFloat_CheckExact(op) (Py_TYPE(op) == &PyFloat_Type)
-/* The str() precision PyFloat_STR_PRECISION is chosen so that in most cases,
- the rounding noise created by various operations is suppressed, while
- giving plenty of precision for practical use. */
-
-#define PyFloat_STR_PRECISION 12
-
#ifdef Py_NAN
#define Py_RETURN_NAN return PyFloat_FromDouble(Py_NAN)
#endif