Python 3.8.5 Not Launching

Gertjan Klein gklein at xs4all.nl
Fri Oct 2 05:45:37 EDT 2020


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 
(global) error trap: to be able to see a traceback, the console must 
remain open, which won't happen if Python allocated the console itself.

Regards,
Gertjan.


More information about the Python-list mailing list