Message75748
See trunk/Modules/cPickle.c(609).
static Py_ssize_t
read_cStringIO(Unpicklerobject *self, char **s, Py_ssize_t n)
{
char *ptr;
if (PycStringIO->cread((PyObject *)self->file, &ptr, n) != n) {
PyErr_SetNone(PyExc_EOFError);
return -1;
}
*s = ptr;
return n;
}
It's checking the length of returned string and if not match, raises
EOFError. But there is no corresponding code in py3k.
I hope attached patch will fix this issue. |
|
Date |
User |
Action |
Args |
2008-11-11 16:45:43 | ocean-city | set | recipients:
+ ocean-city, hagen |
2008-11-11 16:45:43 | ocean-city | set | messageid: <1226421943.67.0.042599007654.issue4298@psf.upfronthosting.co.za> |
2008-11-11 16:45:42 | ocean-city | link | issue4298 messages |
2008-11-11 16:45:42 | ocean-city | create | |
|