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.

Author ssbarnea
Recipients ssbarnea
Date 2010-07-27.12:51:24
SpamBayes Score 0.000175838
Marked as misclassified No
Message-id <1280235089.13.0.870066677678.issue9390@psf.upfronthosting.co.za>
In-reply-to
Content
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\" %*"
History
Date User Action Args
2010-07-27 12:51:29ssbarneasetrecipients: + ssbarnea
2010-07-27 12:51:29ssbarneasetmessageid: <1280235089.13.0.870066677678.issue9390@psf.upfronthosting.co.za>
2010-07-27 12:51:25ssbarnealinkissue9390 messages
2010-07-27 12:51:24ssbarneacreate