Re: Help with Iteration

2008-10-19 Thread Aaron Brady
On Oct 19, 8:47 pm, Asun Friere <[EMAIL PROTECTED]> wrote: > On Oct 20, 6:10 am, Aaron Brady <[EMAIL PROTECTED]> wrote: > > [snip] > > > If customers are stupid, should you sell stupid software? > > That's a hypothetical question with which we need never concern > ourselves.  After all, by definiti

Re: Help with Iteration

2008-10-19 Thread Aaron Brady
On Oct 19, 12:27 pm, "Eric Wertman" <[EMAIL PROTECTED]> wrote: > >> Aaron Brady wrote: > > >>> while 1: > >>>    calculate_stuff( ) > >>>    if stuff < 0.5: > >>>        break > > >> The thought police will come and get you. > > Based on Aaron's previous posting history,  I suspect this was a

Re: Help with Iteration

2008-10-19 Thread Asun Friere
On Oct 20, 6:10 am, Aaron Brady <[EMAIL PROTECTED]> wrote: [snip] > If customers are stupid, should you sell stupid software? That's a hypothetical question with which we need never concern ourselves. After all, by definition customers are not stupid, but "always right." -- http://mail.python.

Re: Help with Iteration

2008-10-19 Thread Aaron Brady
Hendrik van Rooyen wrote: > Aaron Brady wrote: > >>while 1: >>calculate_stuff( ) >>if stuff < 0.5: >>break > > The thought police will come and get you. > > You are doing things by "side effect"! > You are using a global called "stuff"! > You are relying on an implementation >

Re: Help with Iteration

2008-10-19 Thread Eric Wertman
>> Aaron Brady wrote: >> >>> while 1: >>>calculate_stuff( ) >>>if stuff < 0.5: >>>break >> >> The thought police will come and get you. Based on Aaron's previous posting history, I suspect this was a joke. -- http://mail.python.org/mailman/listinfo/python-list

Re: Help with Iteration

2008-10-19 Thread Steve Holden
Hendrik van Rooyen wrote: > Aaron Brady wrote: > >> while 1: >>calculate_stuff( ) >>if stuff < 0.5: >>break > > The thought police will come and get you. > > You are doing things by "side effect"! > You are using a global called "stuff"! > You are relying on an implementatio

Re: Help with Iteration

2008-10-19 Thread Hendrik van Rooyen
Aaron Brady wrote: >while 1: >calculate_stuff( ) >if stuff < 0.5: >break The thought police will come and get you. You are doing things by "side effect"! You are using a global called "stuff"! You are relying on an implementation detail! While their cudgels are bouncing off

Re: Help with Iteration

2008-10-18 Thread Aaron Brady
Chris McComas wrote: > On Oct 18, 3:46 pm, Aaron Brady <[EMAIL PROTECTED]> wrote: >> Chris McComas wrote: >> > actually i'm running it online, with a mysql db. so in the db there is >> > a table CollegeYear with the following fields: >> >> > name >> > rating >> > change >> > wp >> >> > then anothe

Re: Help with Iteration

2008-10-18 Thread John Machin
On Oct 19, 11:59 am, Chris McComas <[EMAIL PROTECTED]> wrote: > On Oct 18, 3:46 pm, Aaron Brady <[EMAIL PROTECTED]> wrote: > > > > > Chris McComas wrote: > > > actually i'm running it online, with a mysql db. so in the db there is > > > a table CollegeYear with the following fields: > > > > name >

Re: Help with Iteration

2008-10-18 Thread Chris McComas
On Oct 18, 3:46 pm, Aaron Brady <[EMAIL PROTECTED]> wrote: > Chris McComas wrote: > > actually i'm running it online, with a mysql db. so in the db there is > > a table CollegeYear with the following fields: > > > name > > rating > > change > > wp > > > then another table Games > > > date > > year

Re: Help with Iteration

2008-10-18 Thread Aaron Brady
Chris McComas wrote: > actually i'm running it online, with a mysql db. so in the db there is > a table CollegeYear with the following fields: > > name > rating > change > wp > > then another table Games > > date > year > team_1 > team_1_score > team_2 > team_2_score > > it goes through and calcula

Re: Help with Iteration

2008-10-18 Thread Chris McComas
On Oct 18, 12:43 am, "Aaron \"Castironpi\" Brady" <[EMAIL PROTECTED]> wrote: > On Oct 17, 10:44 pm, Chris McComas <[EMAIL PROTECTED]> wrote: > > > i have a python script that is computing ratings of sports teams. > > > what i'm trying to do is setup an iteration for the rating so that the > > pytho

Re: Help with Iteration

2008-10-17 Thread Aaron "Castironpi" Brady
On Oct 17, 10:44 pm, Chris McComas <[EMAIL PROTECTED]> wrote: > i have a python script that is computing ratings of sports teams. > > what i'm trying to do is setup an iteration for the rating so that the > python program recomputes the rating if any of the value difference is > > > 0.5. it's c

Help with Iteration

2008-10-17 Thread Chris McComas
i have a python script that is computing ratings of sports teams. what i'm trying to do is setup an iteration for the rating so that the python program recomputes the rating if any of the value difference is > 0.5. it's common for sports ratings to run such iterations... any tips, pointers on