Nested while-s
Josh Tompkins
josht at iname.com
Sat Jan 15 09:42:51 EST 2000
More information about the Python-list mailing list
Sat Jan 15 09:42:51 EST 2000
- Previous message (by thread): Nested while-s
- Next message (by thread): Build mxODBC.MySQL into cgipython
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 _________________________________________________________________
- Previous message (by thread): Nested while-s
- Next message (by thread): Build mxODBC.MySQL into cgipython
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list