New submission from sorin <sorin.sbar...@gmail.com>: create a test.py with this content: print("test")
run this file from command line by redirecting the output: test.py >out.log You get: ---- close failed in file object destructor: Error in sys.excepthook: Original exception was: ---- This does not happen if you call the script by using "python test.py >out.log" Also this does not reproduce with Python 3.1 but it does reproduce with latest Python 2.6 and 2.7 under windows. You can switch the registered python interpreter via registry key: [HKEY_CLASSES_ROOT\Python.File\shell\open\command] @="\"C:\\lib\\Python27\\python.exe\" \"%1\" %*" ---------- components: Windows messages: 111695 nosy: sorin priority: normal severity: normal status: open title: Error in sys.excepthook on windows when redirecting output of the script type: crash versions: Python 2.6, Python 2.7 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue9390> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com