"Wayne Watson" <[EMAIL PROTECTED]> wrote
Signature.htmlThanks. Still much to learn.
Where is your tutorial?
see the .sig...
--
Alan Gauld
Author of the Learn to Program web site
http://www.freenetpages.co.uk/hp/alan.gauld
___
Tutor maillist - T
Title: Signature.html
Thanks. Still much to learn.
Where is your tutorial?
Alan Gauld wrote:
"Wayne Watson" <[EMAIL PROTECTED]>
wrote
tried it, but, once the program ends (or
dies?), the DOS-like window disappears. How does one prevent that?
Another newbie gotcha! :-)
You'll find a
"Wayne Watson" <[EMAIL PROTECTED]> wrote
tried it, but, once the program ends (or dies?), the DOS-like
window disappears. How does one prevent that?
Another newbie gotcha! :-)
You'll find a more detailed discussion within my
Add some Style topic in my tutorial, but the
simplest answer is
Title: Signature.html
Ah, the +1 is to add clarity to the program. updown is either 1, or -1,
or, better in this case, as +1 or -1. It's quite possible the code will
be read by others eventually. I'm emphasizing the purpose of the
variable by reminding the reader of its significance. Plus is
as
Title: Signature.html
Going back to the idea of just running the program outside of IDLE, I
just tried it, but, once the program ends (or dies?), the DOS-like
window disappears. How does one prevent that? Is there some way to keep
a window open with all that has been entered and the results? My
Title: Signature.html
Kent Johnson wrote:
On Sat, Sep 20, 2008 at 7:26 AM, 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? Maybe I had two shell
window up at t
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
"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 m
On Sat, Sep 20, 2008 at 7:26 AM, 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? Maybe I had two shell
> window up at the same time between the real and debug program.
I'm n
Not really the code has an error so it could not have worked.
updown = +1
Is this meant to be
updown += 1
maybe?
Although as the error message shows you need to set it to a
valid value before incrementing it, so mayber you just meant
updown = 1 # no need for the + sign
while keyop <>
Yes, I read it and tried the global statement with the same results,
and tried it without the keyop set. It gave a prompt, and died as
before. Now I've inserted the global statement in the function and
it works by print out the value of updown inside the function. Beats
me. (read below)
I
On Sat, Sep 20, 2008 at 00:23, Wayne Watson
<[EMAIL PROTECTED]> wrote:
> Well, it made a difference, and now program and output are in agreement.
Not really the code has an error so it could not have worked.
> updown = +1
> while keyop <> 0:
You forgot to create keyop in this example.
> Unbound
Title: Signature.html
Yes, I noticed that it does not seem to correspond to the actual code.
The "print updown" line is not to be seen and the line # it points to
seems erroneous. Line 35 is the "Date OK" remark. I'm going to bring
down IDLE. To see if that helps.
Well, it made a difference,
On Fri, Sep 19, 2008 at 21:51, Wayne Watson
<[EMAIL PROTECTED]> wrote:
The code does not belong the Traceback. When I run the code I get a
different issue, see below.
> def sync_high2low_files():
> morris()
> sync_low2high_files()
Search for the difference.
Greets
Sander
_
On Fri, Sep 19, 2008 at 3:51 PM, Wayne Watson
<[EMAIL PROTECTED]> wrote:
> In some code I'm writing, I ran into a problem with the variable updown. I
> want it to be global. I cut down the code to near the essentials. I set a
> variable abc, and it seems to be happy with an almost identical use of
Title: Signature.html
In some code I'm writing, I ran into a problem with the variable
updown. I want it to be global. I cut down the code to near the
essentials. I set a variable abc, and it seems to be happy with an
almost identical use of updown. Where's this going wrong? Although
there's an
16 matches
Mail list logo