Unusual i/o problems

Peter Otten __peter__ at web.de
Fri May 18 04:01:25 EDT 2007


saif.shakeel at gmail.com wrote:

> I am running the exe from command prompt,but i am not able to see
> the error as it goes off very quickly.

http://effbot.org/pyfaq/how-do-i-run-a-python-program-under-windows.htm

> How do i capture the error (traceback).I tried putting an input prompt
> after the expected line of error but wont work.Is there a command to 
> capture the error. 

You can redirect stderr to a file:

http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/redirection.mspx

Peter




More information about the Python-list mailing list