Re: [Tutor] Confused about error message

2005-07-04 Thread Danny Yoo
On Sun, 3 Jul 2005, gelsey torres wrote: > I'm new to Python and computer programming in general. Eventually I got > sick of just reading my programming books and typing code from them into > the interpreter, so I decided to write a script that will grab files > from websites and save them to th

Re: [Tutor] Confused about error message

2005-07-04 Thread Ewald Ertl
Hi! you're missing the except-clause in the exception-handling: on Sun, 3 Jul 2005 21:37:57 -0400 gelsey torres <[EMAIL PROTECTED]> wrote : - gelsey torres > I'm new to Python and computer programming

Re: [Tutor] Confused about error message

2005-07-03 Thread Kent Johnson
gelsey torres wrote: > def unzip_file(filename): > print "Unzipping file.." > for file in filename: > try: > file = os.path.split(filename)[2] > file += zlib.decompressobj() > > def main(): > address = raw_input("Enter the address of the site

[Tutor] Confused about error message

2005-07-03 Thread gelsey torres
I'm new to Python and computer programming in general. Eventually I got sick of just reading my programming books and typing code from them into the interpreter, so I decided to write a script that will grab files from websites and save them to the hard drive, and if they're compressed, unzip them.