[computer-go] GoGui and python
Darren Cook
darren at dcook.org
Fri Aug 24 15:43:18 PDT 2007
> command = raw_input()
> print "= myName\n"
>
> Obviously, this is a toy example, but GoGui responds with "the program
> never responded to the name command". If I write out to a file, I can
> see my response just fine.
Have you tried flushing stdout after print? (or setting up stdout to not
buffer?). A quick google confirmed python is buffering stdout, but I
couldn't find the flush command.
Darren
--
Darren Cook
http://dcook.org/mlsn/ (English-Japanese-German-Chinese free dictionary)
http://dcook.org/work/ (About me and my work)
http://dcook.org/work/charts/ (My flash charting demos)
More information about the computer-go
mailing list