[prev in list] [next in list] [prev in thread] [next in thread] 

List:       python-bugs-list
Subject:    [issue5634] cPickle error in case of recursion limit
From:       report () bugs ! python ! org (vadim suvorov)
Date:       2009-03-31 21:25:52
Message-ID: 1238534752.39.0.574212792554.issue5634 () psf ! upfronthosting ! co ! za
[Download RAW message or body]


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>
<http://bugs.python.org/issue5634>
_______________________________________

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic