"Davy" <[EMAIL PROTECTED]> wrote: >def gen_board_thread(): > print 'enter here' > gen_flip = 1 > while(True):
You don't need the brackets: while True: is good enough > time.sleep(0.3) > if (data_queue.full() == False): write: if not data_queue.full(): , and lose the brackets here too. > if (gen_flip == 1): write: if gen_flip: (no brackets - not needed, ugly) > gen_flip = 0 > data = board_1 > else: > gen_flip = 1 > data = board_2 > data_queue.put(data) > print 'put', data_queue.qsize() HTH - Hendrik -- http://mail.python.org/mailman/listinfo/python-list