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.
--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to