Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #62902 > unrolled thread

Re: Idle Problems

Started byTim Golden <mail@timgolden.me.uk>
First post2013-12-30 20:53 +0000
Last post2013-12-30 20:53 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Idle Problems Tim Golden <mail@timgolden.me.uk> - 2013-12-30 20:53 +0000

#62902 — Re: Idle Problems

FromTim Golden <mail@timgolden.me.uk>
Date2013-12-30 20:53 +0000
SubjectRe: Idle Problems
Message-ID<mailman.4727.1388436798.18130.python-list@python.org>
On 30/12/2013 18:43, rpucci2@cox.net wrote:
> Hi I just joined this list and have a question.I have python 3.3.3 and
> running it on a windows 7 computer.Python has been running good until
> recently.I can bring up python shell,but when I go to run a recently
> loaded program,the code comes up briefly on the screen and then
> disappears.Python just quits and then I have to start over.Can someone
> tell me what is happening?I’m new to python and am just learning.Thanks

Hi, welcome to Python.

This is a common question and has been answered quite a few times on 
this list, including quite recently. However, I can't for the life of me 
find an example of such an answer in the archives! (Someone's sure to 
help me out here).

In short, you'd do better to start up a console window (using Start > 
Run > cmd.exe or any other way you choose). You can then cd to the 
directory your code is in, and run the programs that way. The thing is 
that, if your program looks like this:

<code>
import sys

print("Hello, World!)
print("I'm running Python version ", sys.version)

</code>

then, when you double-click, your program will run in a console window, 
print its brief output, and exit, all before you've really noticed 
what's going on!

Have a look here:

   http://docs.python.org/3.3/faq/windows

and here:

   http://docs.python.org/3.3/using/windows.html

for some amount of help.

TJG

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web