Re: Unusual i/o problems

2007-05-18 Thread Peter Otten
[EMAIL PROTECTED] wrote: > On May 18, 1:01 pm, Peter Otten <[EMAIL PROTECTED]> wrote: >> [EMAIL PROTECTED] 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-win

Re: Unusual i/o problems

2007-05-18 Thread saif . shakeel
On May 18, 1:01 pm, Peter Otten <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] 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 t

Re: Unusual i/o problems

2007-05-18 Thread Peter Otten
[EMAIL PROTECTED] 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 expec

Re: Unusual i/o problems

2007-05-18 Thread saif . shakeel
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

Re: Unusual i/o problems

2007-05-16 Thread Peter Otten
[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 o

Re: Unusual i/o problems

2007-05-16 Thread Diez B. Roggisch
[EMAIL PROTECTED] wrote: > Hi, > I am parsing an xml file ,before that i have replaced a string in > the original xml file with another and made a new xml file which will > now be parsed.I am also opening some more files for output.The > following code shows some i/o commands. > file_input = r