Commit 7321bb4c authored by Serhiy Storchaka's avatar Serhiy Storchaka

Issue #23096: Pickle representation of floats with protocol 0 now is the same

for both Python and C implementations.
parent 7db08473
......@@ -13,6 +13,9 @@ Core and Builtins
Library
-------
- Issue #23096: Pickle representation of floats with protocol 0 now is the same
for both Python and C implementations.
- Issue #19105: pprint now more efficiently uses free space at the right.
- Issue #14910: Add allow_abbrev parameter to argparse.ArgumentParser. Patch by
......
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment