Nested while-s
Josh Tompkins
josht at iname.com
Sat Jan 15 09:42:51 EST 2000
tim_one at email.msn.com (Tim Peters) wrote in
<000301bf5f11$48fa28e0$b92d153f at tim>:
>Note that you never reset currentY to ypos-radius, so the inner loop won't
>be entered on any but the first iteration of the outer loop. You probably
>want to change
>
> currentY = (ypos - radius)
> while currentX <= (xpos + radius):
>
>to
>
> while currentX <= (xpos + radius):
> currentY = (ypos - radius)
>
>(that is, just swap those two lines).
>
>feel-free-to-kick-yourself-now<wink>-ly y'rs - tim
>
>
>
Ouch! I guess that's what I get for trying to write this stuff on <enter
small value here> hours of sleep. <grin> Thanks for the help.
Josh "Josue" Tompkins
________________________________________________________________
"Destined For Great Things -- but pacing myself."
- From a t-shirt.
E-Mail: josht at iname.com
ICQ: 21219667
Web: http://www.crosswinds.net/~josht
_________________________________________________________________
More information about the Python-list
mailing list