[Tutor] Fatal error after RE-installing Python 2.3.4

2006-09-22 Thread Tony Cappellini
I've just started a job which has a massive python2.3.4-centric tools installation and configuration.I know what you're going to say, but I can't upgrade and be the only one with a newer version. There are close to 30 engineers using this same tools configuration, and it has been working fine for a

[Tutor] Help with cookies/auth

2006-09-22 Thread anil maran
web.setcookie('user', '', 'Mon, 01-Jan-2000 00:00:00 GMT')  File "", line 1    n-2000 00:00:00 GMT') compare datetime.datetime to int    ^SyntaxError: invalid syntaxIm trying to set a cookie after logging an user in. If someone has somecode for doing this it ll be greatthe code I use for st

Re: [Tutor] reading files

2006-09-22 Thread Alan Gauld
>i cant understand the open command i tried the help command but still > dont get i am trying to write twi programs one to keep track of > money > phone numbers... and another to randomly print a statmint from a > file The built in open command opens a file. That is it creates a file object that

[Tutor] reading files

2006-09-22 Thread max .
i cant understand the open command i tried the help command but still dont get i am trying to write twi programs one to keep track of money phone numbers... and another to randomly print a statmint from a file pleas dont just send a program i would like it if you could explain the command so that

Re: [Tutor] Filesystem Usage

2006-09-22 Thread Steve Nelson
On 9/22/06, wesley chun <[EMAIL PROTECTED]> wrote: > this sounds like it will require some work to implement 'df' in > Python Mmm... although I have discovered a debian package called pydf whose source made interesting reading. > i'd use the one of > the {os,popen2}.popen*() functions or the sub

Re: [Tutor] module file copy ?

2006-09-22 Thread Alan Gauld
Take a look in my OS topic on my tutor for a run through these file handling functions. > OK have I missed it - but which module is file copy in ? I looked > all around > OS but no luck - I can find rename(src, dst) but that's about it. But the quick answer is shutil Alan Gauld Author of the Le

Re: [Tutor] python intall error

2006-09-22 Thread Alan Gauld
Hi Paulino, I've seen it being mentioned here before, but not sure what the answer is. I'd try reporting it on the main Python newsgroup where the gurus hang out... I'd also try uninstalling all things Pythonic and downloading a fresh copy and trying again. If its any consolation I have a simila

Re: [Tutor] Python CGI Script

2006-09-22 Thread Alan Gauld
> > cur.execute("INSERT INTO images (image) VALUES (?)", data_obj) > >In my case, I'm using psycopg2 for PostgreSQL. I just did a test, > and it doesn't seem to like the ? syntax. I'll check the > documentation > to see if there's a setting to have it use the ? syntax. It may well be the Python c

Re: [Tutor] module file copy ?

2006-09-22 Thread Dave S
On Thursday 21 September 2006 21:48, Mike Hansen wrote: > > -Original Message- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] On Behalf Of Dave S > > Sent: Thursday, September 21, 2006 2:41 PM > > To: Python Tutor > > Subject: [Tutor] module file copy ? > > > > OK have I missed i