Daniel Darabos darabos.dan...@gmail.com added the comment:
Attached patch against SVN trunk including unittest. The test is not
great, because it practically only checks if the patch was applied and
not the real-life situation where the exception occurs, but I'm not too
handy with sgmllib (I
Changes by Daniel Darabos [EMAIL PROTECTED]:
--
nosy: +cyhawk
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1651995
___
___
Python-bugs-list mailing
Daniel Darabos [EMAIL PROTECTED] added the comment:
I have just quickly pasted it into an interpreter.
Python 2.5 (r25:51908, Sep 19 2006, 09:52:17) [MSC v.1310 32 bit
(Intel)] on win32
Type help, copyright, credits or license for more information.
class Node(object):
... pass
...
nodes
Daniel Darabos [EMAIL PROTECTED] added the comment:
It works for me as a test case too:
test_deep_recursive (__main__.cPickleDeepRecursive) ... ERROR
==
ERROR: test_deep_recursive (__main__.cPickleDeepRecursive
Daniel Darabos [EMAIL PROTECTED] added the comment:
Added lines have to come after the static char... declarations to
comply with C.
Unfortunately I am not experienced with building Python on Windows, so I
could not really try the patch, sorry. (I can get a cPickle.pyd, but it
does not replace
New submission from Daniel Darabos [EMAIL PROTECTED]:
The documentation[1] says:
Trying to pickle a highly recursive data structure may exceed the
maximum recursion depth, a RuntimeError will be raised in this
case. You can carefully raise this limit with sys.setrecursionlimit
Daniel Darabos [EMAIL PROTECTED] added the comment:
I have also described the crash, but it makes sense to handle it
separately. So I have created issue 2702, and changed the title of this
issue.
--
title: pickling of large recursive structures fails - eliminate recursion in
pickling
Daniel Darabos [EMAIL PROTECTED] added the comment:
Python 2.5 (r25:51908, Sep 19 2006, 09:52:17) [MSC v.1310 32 bit
(Intel)] on win32
(Windows XP Professional 32 bits)
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2702
New submission from Daniel Darabos [EMAIL PROTECTED]:
In the attached demo I create a graph of 250 nodes, all of which are
connected to every other node, and this is represented by a set
attribute of the Node objects.
When I try to pickle this graph, it fails in various ways. In regular
pickle
Daniel Darabos [EMAIL PROTECTED] added the comment:
So now I've learned that this is a result of the way Pickler is
implemented. I think that it would make sense to create an
implementation that is not that recursive and that would handle such
structures better.
I have now written one
Changes by Daniel Darabos [EMAIL PROTECTED]:
Added file: http://bugs.python.org/file9851/picklertest.py
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2480
__
___
Python-bugs
Daniel Darabos [EMAIL PROTECTED] added the comment:
Sidenote: If I click edit for nonrecursivepickler.py, I get told that
File has been classified as spam. Strange. Should I not use Viagra as
a classname? :) (j/k I didn't do anything like that)
However I have now fixed a mistake in my code
12 matches
Mail list logo