diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2015-02-15 14:18:32 +0200 |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2015-02-15 14:18:32 +0200 |
commit | c86ca26d3201d58a33cdc28dfbd49f9a84122d06 (patch) | |
tree | f335c67e917f0dc67d3b4fd44d902dc9d5d42ec9 /Modules/_pickle.c | |
parent | d362c2126497410bf45f09e78dd1821a003bde39 (diff) | |
download | cpython-git-c86ca26d3201d58a33cdc28dfbd49f9a84122d06.tar.gz |
Issue #23096: Pickle representation of floats with protocol 0 now is the same
for both Python and C implementations.
Diffstat (limited to 'Modules/_pickle.c')
-rw-r--r-- | Modules/_pickle.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_pickle.c b/Modules/_pickle.c index 7a234f1dff..51e2f83ff8 100644 --- a/Modules/_pickle.c +++ b/Modules/_pickle.c @@ -1979,7 +1979,7 @@ save_float(PicklerObject *self, PyObject *obj) if (_Pickler_Write(self, &op, 1) < 0) goto done; - buf = PyOS_double_to_string(x, 'g', 17, 0, NULL); + buf = PyOS_double_to_string(x, 'r', 0, Py_DTSF_ADD_DOT_0, NULL); if (!buf) { PyErr_NoMemory(); goto done; |