[issue1651995] sgmllib _convert_ref UnicodeDecodeError exception, new in 2.5

2009-03-31 Thread Daniel Darabos
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

[issue1651995] sgmllib _convert_ref UnicodeDecodeError exception, new in 2.5

2008-10-02 Thread Daniel Darabos
Changes by Daniel Darabos [EMAIL PROTECTED]: -- nosy: +cyhawk ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue1651995 ___ ___ Python-bugs-list mailing

[issue2702] pickling of large recursive structures crashes cPickle

2008-06-22 Thread Daniel Darabos
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

[issue2702] pickling of large recursive structures crashes cPickle

2008-06-22 Thread Daniel Darabos
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

[issue3165] cPickle recursion problem

2008-06-22 Thread Daniel Darabos
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

[issue2702] pickling of large recursive structures crashes cPickle

2008-04-27 Thread Daniel Darabos
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

[issue2480] eliminate recursion in pickling

2008-04-27 Thread Daniel Darabos
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

[issue2702] pickling of large recursive structures crashes cPickle

2008-04-27 Thread Daniel Darabos
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

[issue2480] pickling of recursive sets of objects fails

2008-03-25 Thread Daniel Darabos
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

[issue2480] pickling of large recursive structures fails

2008-03-25 Thread Daniel Darabos
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

[issue2480] pickling of large recursive structures fails

2008-03-25 Thread Daniel Darabos
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

[issue2480] pickling of large recursive structures fails

2008-03-25 Thread Daniel Darabos
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