<br><br><div><span class="gmail_quote">On 2/22/07, <b class="gmail_sendername">Nagendra Singh</b> <<a href="mailto:email@example.com">firstname.lastname@example.org</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>What it does is that opens and closes the command window really fast and displays a value of 1 in the interpreter. How can I get python to display the results in the interactive window or what is the right way to do this.
<br><br></blockquote></div><br>I assume you're using the PythonWin editor that comes from ActiveState. I tend to use the editor to create and edit the scripts, but I open a separate command line window (or terminal) for testing and running the scripts. This way, the output is right there and remains visible. If you run the script from within the PythonWin editor it will generate the output and then immediately close the output window and you miss seeing it.