Re: Unexpected global variable behaviour

2008-08-26 Thread RgeeK
Thanks a lot Fredrik, A big wave of deja vu came over me as I read your note. That bit me once before, and was my only previous run-in with the 'global' directive which clearly didn't stick with me. :( Thanks for the concise, helpful reply. The universe makes sense again. -Ross. Fredrik

Re: Unexpected global variable behaviour

2008-08-25 Thread Fredrik Lundh
RgeeK wrote: I'm seeing something which make me think I'm missing something about how global var's behave. I've defined a global string, right at the start of my .py file. outXMLfile = "abc" I define a class and do a bunch of stuff below that. Then I have another class, and in it, there

Unexpected global variable behaviour

2008-08-25 Thread RgeeK
I'm seeing something which make me think I'm missing something about how global var's behave. I've defined a global string, right at the start of my .py file. outXMLfile = "abc" I define a class and do a bunch of stuff below that. Then I have another class, and in it, there is a method 'de