This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: .py file does not open on click
Type: behavior Stage:
Components: None Versions: Python 3.2
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: loewis, victorywin
Priority: normal Keywords:

Created on 2011-03-07 03:32 by victorywin, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (2)
msg130220 - (view) Author: Victor (victorywin) Date: 2011-03-07 03:32
Hi dear developers,
**Python 3.2 (r32:88445, Feb 20 2011, 21:29:02) [MSC v.1500 32 bit (Intel)] on win32** (windows vista; standard python installer for windows)
I am new to python. In the documentation I read that a .py file should run just on clicking it. 
I do so, but nothing happens (or at most, I can see something opening for just a fraction of second, then it immediately closes). Same when I try to open it (with the right-click open menu) with python, pythonw.
Is that normal? The way I do then, is to open the IDLE (python shell) and from there--"open file".
(Also, I don't manage to use the "from file_name import*" command (in python shell IDLE), but I guess that will be another report.)
msg130222 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2011-03-07 04:27
Yes, the behaviour you observe is perfectly normal. When you double-click a Python file, it is executed right away. If execution completes quickly, the window it opens is closed before you can even notice it.
History
Date User Action Args
2022-04-11 14:57:14adminsetgithub: 55632
2011-03-07 04:27:36loewissetstatus: open -> closed

nosy: + loewis
messages: + msg130222

resolution: not a bug
2011-03-07 03:32:37victorywincreate