[Python-checkins] r71195 - python/branches/py3k-short-float-repr/Modules/_pickle.c

mark.dickinson python-checkins at python.org
Sat Apr 4 23:11:32 CEST 2009


Author: mark.dickinson
Date: Sat Apr 4 23:11:31 2009
New Revision: 71195
Log:
Use repr formatting in pickle (without extra .0)
Modified:
 python/branches/py3k-short-float-repr/Modules/_pickle.c
Modified: python/branches/py3k-short-float-repr/Modules/_pickle.c
==============================================================================
--- python/branches/py3k-short-float-repr/Modules/_pickle.c	(original)
+++ python/branches/py3k-short-float-repr/Modules/_pickle.c	Sat Apr 4 23:11:31 2009
@@ -1025,7 +1025,7 @@
 if (pickler_write(self, &op, 1) < 0)
 goto done;
 
- buf = PyOS_double_to_string(x, 'g', 17, 0);
+ buf = PyOS_double_to_string(x, 'r', 0, 0);
 if (!buf) {
 PyErr_NoMemory();
 goto done;


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /