Premature script error

2005-06-09 Thread Jatinder Singh
I am running a CGI Programme. which is throwing Premature script error for some inputs. I have checked and couldn't fig out the problem. Even error log is empty. Can anybody help me out of this or can I use try except to catch the Error and how? plz get back soon .Its urgent -- Regards, Jat

Re:

2005-06-06 Thread Jatinder Singh
9.html#SECTION00920 > > The online book DiveIntoPython > http://diveintopython.org/file_handling/file_objects.html > > Or some common questions about files (maybe you can find the answer > for your troubles - not all of them, of course) =) > http://www.faqts.com/know

Re:

2005-06-05 Thread Jatinder Singh
I am reading a only. But what if I want read write and execute that file. -- Regards, Jatinder Singh “ Everyone needs to be loved... especially when they do not deserve it.” XX Quoting Tiago Stürmer Daitx <[EM

[no subject]

2005-06-04 Thread Jatinder Singh
with sys.path but it is not for that. -- Regards, Jatinder Singh “ Everyone needs to be loved... especially when they do not deserve it.” -- http://mail.python.org/mailman/listinfo/python-list

Re: change vars in place w/loop or list comprehension

2005-05-31 Thread Jatinder Singh
t; >>> [a, b, c] = [s.upper() for s in [a, b, c]] > >>> a > 'ONE' > > Both of these accomplish what I'm after; I prefer the second for its > brevity. > But either approach requires that I spell out my list of vars-to-alter > [a, b, c] twice. Thi

Re: Stupid Newbie Question Concerning CGI and Reading Forward Slashes

2005-05-31 Thread Jatinder Singh
nt character > and adding a function in the script to substitute a forward slash for > that character? > > I tried looking for this for a long while, but maybe I didn't search > enough. Thanks for all of your help and I'm sorry if this is a > question that has been asked

_tkinter problem

2005-01-07 Thread Jatinder Singh
Hi I am running a script which is importing tkinter  from "/usr/local/lib/python2.3/lib-tk/Tkinter.py" and generating an error " import _tkinter ImportError: No module named _tkinter "   can anybody tell me what is it? and how to get away with it?   -- http://mail.python.org/mailman/listin