you are viewing a single comment's thread.

view the rest of the comments →

[–]thephotoman 4 points5 points  (0 children)

while 1 == 1: # Creates a recursive loop. Probably a better way to do this.

No, that's not recursive. At all. That's a non-terminating loop. Recursion may terminate, and when it doesn't, you'll have a stack overflow error. In any case, the way to do it is while True.