Debugging on windows via print statements -- reliable?

Andrew McNamara andrewm at object-craft.com.au
Sun Mar 24 23:23:31 EST 2002


>Is there something on Windows (Win2K, to be exact) that I need to do to make
>sure that print statements are actually output as soon as the statement is
>executed.

You could try sys.stdout.flush() after each print - stdio might be
buffering the output in block-sized chunks.

-- 
Andrew McNamara, Senior Developer, Object Craft
http://www.object-craft.com.au/




More information about the Python-list mailing list