> 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
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
> 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
___
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
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
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
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)
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
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
> 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
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
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
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
13 matches
Mail list logo