Title: Signature.html


Alan Gauld wrote:
"Wayne Watson" <[EMAIL PROTECTED]> wrote
I do not think I've made an inaccurate observation. Is it possible the IDLE shell is leaving something behind that I can't see?

That's very possible. The interpreter will remember its previous state for as long as its running so if you import your module into the shell, say, it will remember it, similarly if you try some code out that uses the same name as the variable in your script it can confuse the interpreter.

That's why, when in doubt, always run your code outside of any IDE to find out its true behaviour. IDEs (including IDLE) are very useful tools but they can mislead as well.
Good tip. I'll do use as necessary until I complete the program, which I expect to do today, then move onto something besides IDLE.

I just inserted the global statement in the full program

I'm not quite sure what you mean by this, but I assume you mean you had a simplified version of the problem plus the full application code that you were working on?
I have the program I'm working on, 600+ lines of code, and the stripped down version, debug.py, 30 lines, which isolates the problem. The "full" program is the 600 line keeper. I have had both up in separate windows trying to figure out what was going on, as I bounced between them. I don't think it's possible to have both executing. At least, I hope that wasn't part of the problem. This one sure had me dazed and confused for ahile. :-)

HTH,


--
           Wayne Watson (Watson Adventures, Prop., Nevada City, CA)

             (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
              Obz Site:  39° 15' 7" N, 121° 2' 32" W, 2700 feet
            
            "Though no one can go back and make a brand new start, 
	     ANYONE can start from now and make a brand new end." 
		                    -- Anonymous
            
                    Web Page: <www.speckledwithstars.net/>
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to