Re: Python 3.8.5

2021-01-06 Thread Grant Edwards
On 2021-01-06, Joseph Milroy Felix Moraes (Moraes) via Python-list wrote: > Good day, > > I keep getting this error message when trying to open Python 3.8.5 on my > computer windows 7 , 64 bit. > > --- > python.exe - System Error > --- > The

Re: Python 3.8.5 Not Launching

2020-10-03 Thread Eryk Sun
On 10/3/20, Gertjan Klein wrote: > > I tried to find out what happens, using your other code: > > >>> import win32con, win32api > >>> access = win32con.PROCESS_QUERY_LIMITED_INFORMATION > >>> hproc = win32api.OpenProcess(access, False, pid) > >>> executable =

Re: Python 3.8.5 Not Launching

2020-10-03 Thread Gertjan Klein
Chris Angelico schreef: On Fri, Oct 2, 2020 at 7:51 PM Gertjan Klein wrote: Is it possible to determine, from within Python, whether Python allocated or inherited the console? This could be useful to know in a (global) error trap: to be able to see a traceback, the console must remain open,

Re: Python 3.8.5 Not Launching

2020-10-03 Thread Gertjan Klein
Eryk Sun schreef: On 10/2/20, Gertjan Klein wrote: Is it possible to determine, from within Python, whether Python allocated or inherited the console? If a console session isn't headless (i.e. it's not a pseudoconsole) and has a window (i.e. not allocated with CREATE_NO_WINDOW), then the

Re: Python 3.8.5 Not Launching

2020-10-02 Thread Eryk Sun
On 10/2/20, Gertjan Klein wrote: > Eryk Sun wrote: > >> If .py files are associated with py.exe or python.exe, then running a >> .py script either inherits or allocates a console and attaches to it. > > Is it possible to determine, from within Python, whether Python > allocated or inherited the

Re: Python 3.8.5 Not Launching

2020-10-02 Thread Chris Angelico
On Fri, Oct 2, 2020 at 7:51 PM Gertjan Klein wrote: > > Eryk Sun wrote: > > > If .py files are associated with py.exe or python.exe, then running a > > .py script either inherits or allocates a console and attaches to it. > > Is it possible to determine, from within Python, whether Python >

Re: Python 3.8.5 Not Launching

2020-10-02 Thread Gertjan Klein
Eryk Sun wrote: If .py files are associated with py.exe or python.exe, then running a .py script either inherits or allocates a console and attaches to it. Is it possible to determine, from within Python, whether Python allocated or inherited the console? This could be useful to know in a

Re: Python 3.8.5 Not Launching

2020-09-23 Thread Eryk Sun
On 9/23/20, yehudis...@gmail.com wrote: >It’s a py file with simple python code If .py files are associated with py.exe or python.exe, then running a .py script either inherits or allocates a console and attaches to it. The console closes automatically as soon as the last reference to it

RE: Python 3.8.5 Not Launching

2020-09-23 Thread yehudisgru
It’s a py file with simple python code   From: [1]Igor Korot Sent: Wednesday, September 23, 2020 12:39 AM To: [2]yehudis...@gmail.com Cc: [3]python-list@python.org Subject: Re: Python 3.8.5 Not Launching   Hi,   On Tue, Sep 22, 2020 at 11:25 PM wrote

Re: Python 3.8.5 Not Launching

2020-09-23 Thread Terry Reedy
On 9/22/2020 11:54 PM, yehudis...@gmail.com wrote: I installed Python 3.8.5 on Windows 10 When I click on a python file it launches the program but it closes immediately. When you run a program that way, the console/terminal window closes when the program finishes executing.

Re: Python 3.8.5 Not Launching

2020-09-22 Thread Igor Korot
Hi, On Tue, Sep 22, 2020 at 11:25 PM wrote: > >Hi, > > > >I installed Python 3.8.5 on Windows 10 > >When I click on a python file it launches the program but it closes >immediately. What is the content of this file? Is it a py or pyc file? Thank you. > > > >Please help,