On May 16, 7:55 pm, Peter Otten <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > output_file = open(test_file,"w") > ... > > input_xml_sec = open(output_file,'r') > > Can you spot the problem now? To prevent it, use a naming convention that > allows you to distinguish between file /names/ and file /objects/. > > > But i am getting an error on this line > > (input_xml_sec = open(output_file,'r')).I have tried to figure out but > > not able to debug.Can someone throw some light or anything they feel > > could be going wrong somewhere. > > In the future, to make it as easy as possible to help you, please post the > actual traceback which contains valuable hints about the error you > encountered even if you cannot make sense of it. > > Peter
Hi, I am running the exe from command prompt,but i am not able to see the error as it goes off very quickly.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. Thanks -- http://mail.python.org/mailman/listinfo/python-list