Yeah, flushing stdout should be all you need to do to make this work. To do
this,

import sys
sys.stdout.flush()


Good luck :)

On 8/24/07, Darren Cook <[EMAIL PROTECTED]> wrote:
>
> > 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)
> _______________________________________________
> computer-go mailing list
> computer-go@computer-go.org
> http://www.computer-go.org/mailman/listinfo/computer-go/
>
_______________________________________________
computer-go mailing list
computer-go@computer-go.org
http://www.computer-go.org/mailman/listinfo/computer-go/

Reply via email to