Re: pickling a circular object inherited from list

2008-12-10 Thread Klaus Kopec
Ned Deily wrote: In article <[EMAIL PROTECTED]>, Klaus Kopec <[EMAIL PROTECTED]> wrote: What did I do wrong? Old Python version? :) Seems to work in 3.0 (don't have 2.6 currently to check but IMO it's fixed there as well). It works for me with v3.0 as well, but not with v2.6.1 (same error as

Re: pickling a circular object inherited from list

2008-12-09 Thread Ned Deily
In article <[EMAIL PROTECTED]>, Klaus Kopec <[EMAIL PROTECTED]> wrote: > >> What did I do wrong? > > Old Python version? :) > > Seems to work in 3.0 (don't have 2.6 currently to check but IMO it's > > fixed there as well). > It works for me with v3.0 as well, but not with v2.6.1 (same error as >

Re: pickling a circular object inherited from list

2008-12-09 Thread Klaus Kopec
What did I do wrong? Old Python version? :) Seems to work in 3.0 (don't have 2.6 currently to check but IMO it's fixed there as well). It works for me with v3.0 as well, but not with v2.6.1 (same error as stated before for v2.4). Is there any way to fix this in v2.6.1 or even v2.4? Right now I

Re: pickling a circular object inherited from list

2008-12-09 Thread Miki
Hello Klaus, > I have a problem with inheritance from list. I want to create a tree > like object where child nodes are kept in self[:] and every child has a > field that points to its parent. Pickling such an object, however, > throws an AssertionError. See below for source code and output of an