[Tutor] program hangs in while loop using wx.yield

2010-11-13 Thread Alex Hall
Hi all, I had this working back in the summer, but have since had to restructure some things in the code. Now, my program is hanging while it waits for the human player to take his/her turn, and I am not sure how to free it; as long as it hangs, the player cannot do anything, so it continues to han

Re: [Tutor] List comprehension question

2010-11-13 Thread Steven D'Aprano
Richard D. Moores wrote: On Fri, Nov 12, 2010 at 15:26, Steven D'Aprano wrote: best = t.repeat(number=1, repeat=5) print round(best, 3) t.repeat(number=1, repeat=5) is a list of the 5 times, not the best of the 5. Oops! Good catch. Sorry about that. -- Steven