Re: [Tutor] perplexing error with shelve REVISED

2007-10-31 Thread Orest Kozyar
> It appears you have a cyclic reference in your doc object. > Try adding "doc.unlink()" before you add it to your shelf. Actually, I just realized that doc.unlink() seems to delete the entire XML content, which kind of defeats the purpose of caching it. I'll check on xml-sig and the comp.lang

Re: [Tutor] perplexing error with shelve REVISED

2007-10-31 Thread Kent Johnson
Eric Brunson wrote: > Orest Kozyar wrote: >>> Please post the entire traceback (omitting duplicate lines). >>> >> Sorry, I should have included the traceback. I've revised the sample script >> so that it generates the traceback when run. The sample script is at the >> very bottom of this em

Re: [Tutor] perplexing error with shelve REVISED

2007-10-31 Thread Orest Kozyar
> It appears you have a cyclic reference in your doc object. > Try adding "doc.unlink()" before you add it to your shelf. That fixed the problem. I did not realize that XML documents could have cyclic references. Thanks for all your help! Orest ___

Re: [Tutor] perplexing error with shelve REVISED

2007-10-31 Thread Kent Johnson
Orest Kozyar wrote: >> Please post the entire traceback (omitting duplicate lines). > > Sorry, I should have included the traceback. I've revised the sample script > so that it generates the traceback when run. The sample script is at the > very bottom of this email. I've poked at this a littl

Re: [Tutor] perplexing error with shelve REVISED

2007-10-31 Thread Eric Brunson
Orest Kozyar wrote: >> Please post the entire traceback (omitting duplicate lines). >> > > Sorry, I should have included the traceback. I've revised the sample script > so that it generates the traceback when run. The sample script is at the > very bottom of this email. > It appears you

Re: [Tutor] perplexing error with shelve REVISED

2007-10-31 Thread Eric Brunson
Orest Kozyar wrote: >> Please post the entire traceback (omitting duplicate lines). >> > > Sorry, I should have included the traceback. I've revised the sample script > so that it generates the traceback when run. The sample script is at the > very bottom of this email. > > ### SCRIPT O

Re: [Tutor] perplexing error with shelve REVISED

2007-10-31 Thread Orest Kozyar
Cc: 'Bob Gailer'; 'tutor@python.org' > Subject: RE: [Tutor] perplexing error with shelve REVISED > > This is on: > > Python 2.5 (r25:51908, Oct 19 2007, 09:46:41) > [GCC 4.1.2 20070925 (Red Hat 4.1.2-27)] on linux2 > Redhat Fedora release 7 (Moonshine)

Re: [Tutor] perplexing error with shelve REVISED

2007-10-31 Thread Orest Kozyar
This is on: Python 2.5 (r25:51908, Oct 19 2007, 09:46:41) [GCC 4.1.2 20070925 (Red Hat 4.1.2-27)] on linux2 Redhat Fedora release 7 (Moonshine) x86 64 bit processor (SMP) > The program worked fine for me (python 2.5.1 - stackless on > Mac OSX). Can you provide details about your platform (pytho

Re: [Tutor] perplexing error with shelve REVISED

2007-10-30 Thread Aditya Lal
On 10/31/07, Orest Kozyar <[EMAIL PROTECTED]> wrote: > > > Please post the entire traceback (omitting duplicate lines). > > Sorry, I should have included the traceback. I've revised the sample > script > so that it generates the traceback when run. The sample script is at the > very bottom of thi

Re: [Tutor] perplexing error with shelve REVISED

2007-10-30 Thread Orest Kozyar
> Please post the entire traceback (omitting duplicate lines). Sorry, I should have included the traceback. I've revised the sample script so that it generates the traceback when run. The sample script is at the very bottom of this email. ### SCRIPT OUTPUT ### [kozyar]:~$ python exampl

Re: [Tutor] perplexing error with shelve

2007-10-30 Thread bob gailer
Orest Kozyar wrote: > I have a program which queries an online database (Medline) for XML data. > It caches all data using shelve to avoid hitting the database too many > times. For some reason, I keep getting a RuntimeError: maximum recursion > depth exceeded when attempting to add a certain reco

Re: [Tutor] perplexing error with shelve REVISED

2007-10-30 Thread Bob Gailer
Orest Kozyar wrote: > I have a program which queries an online database (Medline) for XML data. > It caches all data using shelve to avoid hitting the database too many > times. For some reason, I keep getting a RuntimeError: maximum recursion > depth exceeded when attempting to add a certain reco

[Tutor] perplexing error with shelve

2007-10-30 Thread Orest Kozyar
I have a program which queries an online database (Medline) for XML data. It caches all data using shelve to avoid hitting the database too many times. For some reason, I keep getting a RuntimeError: maximum recursion depth exceeded when attempting to add a certain record. This program has succes