[Python-checkins] r70767 - python/branches/py3k-short-float-repr/Modules/_pickle.c
eric.smith
python-checkins at python.org
Tue Mar 31 00:27:03 CEST 2009
Author: eric.smith
Date: Tue Mar 31 00:27:02 2009
New Revision: 70767
Log:
Set error if out of memory.
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 Tue Mar 31 00:27:02 2009
@@ -1026,8 +1026,10 @@
goto done;
buf = PyOS_double_to_string(x, 2, 'g', 17, 0, 0);
- if (!buf)
+ if (!buf) {
+ PyErr_NoMemory();
goto done;
+ }
if (pickler_write(self, buf, strlen(buf)) < 0)
goto done;
More information about the Python-checkins
mailing list