if (PyDict_GetItem(self->fast_memo, key)) {
Py_DECREF(key);
PyErr_Format(PyExc_ValueError,
- "fast mode: can't pickle cyclic objects including object type %s at %p",
+ "fast mode: can't pickle cyclic objects "
+ "including object type %s at %p",
obj->ob_type->tp_name, obj);
self->fast_container = -1;
return 0;
PyObject *file = NULL;
int proto = 0;
- /* XXX What is this doing? The documented signature is
- * XXX Pickler(file, proto=0), but this accepts Pickler() and
- * XXX Pickler(integer) too. The meaning then is clear as mud.
- * XXX Bug? Feature?
+ /* XXX
+ * The documented signature is Pickler(file, proto=0), but this
+ * accepts Pickler() and Pickler(integer) too. The meaning then
+ * is clear as mud, undocumented, and not supported by pickle.py.
+ * I'm told Zope uses this, but I haven't traced into this code
+ * far enough to figure out what it means.
*/
if (!PyArg_ParseTuple(args, "|i:Pickler", &proto)) {
PyErr_Clear();
if (fc) {
if (fc==Py_None) {
- PyErr_SetString(UnpicklingError,
- "Global and instance pickles are not supported.");
+ PyErr_SetString(UnpicklingError, "Global and instance "
+ "pickles are not supported.");
return NULL;
}
return PyObject_CallFunction(fc, "OO", py_module_name,
if (! value) {
PyErr_SetObject(BadPickleGet, py_str);
rc = -1;
- } else {
+ }
+ else {
PDATA_APPEND(self->stack, value, -1);
rc = 0;
}
if (! value) {
PyErr_SetObject(BadPickleGet, py_key);
rc = -1;
- } else {
+ }
+ else {
PDATA_APPEND(self->stack, value, -1);
rc = 0;
}
if (! value) {
PyErr_SetObject(BadPickleGet, py_key);
rc = -1;
- } else {
+ }
+ else {
PDATA_APPEND(self->stack, value, -1);
rc = 0;
}