[New-bugs-announce] [issue5634] cPickle error in case of recursion limit

vadim suvorov report at bugs.python.org
Tue Mar 31 23:25:52 CEST 2009

New submission from vadim suvorov <zzPythonTracker at stelary.com>:

In case of heavily recursive data structure cPickle produces
intermittent random exceptions (AttributeError, etc.). The expected is
RuntimeError: ('maximum recursion depth exceeded in ...'). In addition,
the behavior differs for classic/new classes.

The reason: the cPickle needs several optional methods (__getstate__,
__getinitargs__) for each object. In their absence an AttributeError is
generated. It is normally suppressed, but suppression itself causes
recursion. The error in exception processing leads to fancy errors.

The proposed solution: temporary (for call of PyErr_ExceptionMatches())
increase recursion limit.

files: !!!
messages: 84915
nosy: bad
severity: normal
status: open
title: cPickle error in case of recursion limit
type: behavior
versions: Python 2.7
Added file: http://bugs.python.org/file13527/!!!

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list