Disappearing global variables

Andrei Kulakov ak at silmarill.org
Sat Apr 20 18:51:17 EDT 2002


In article <_Mkw8.5895$Dm.409622 at bin2.nnrp.aus1.giganews.com>, Terry
Reedy wrote:
> 
> "Andrei Kulakov" <ak at silmarill.org> wrote in message
> news:slrnac3lc2.3hm.ak at ak.silmarill.org...
>> You can look at full program at silmarill.org/pybook/pybook.py -
> it's
>> a little over 500 lines.
> 
> can you produce a considerable shorter (minimal) version that exhibits
> the same problem?
>
I figured this out.. I had a datafile that held a list of Book()
instances; then I changed Book() class a little, so here I was trying to
use old instances in the file where class was changed. I don't quite
understand why it deleted other instances from global namespace. I guess
if you do something like this, outcome is unpredictable :P.

 - Andrei


> 
> 
> 


-- 
Cymbaline: intelligent learning mp3 player - python, linux, console.
get it at: cy.silmarill.org



More information about the Python-list mailing list