[Tutor] ftplib error

2006-02-22 Thread benmarkwell
I'm trying to write a backup script to put files on a server. --This is how I have begun: from ftplib import FTP f = open(r'g:\dev\python\exercises\aaa.py', 'r')fname = r'g:\dev\python\exercises\aaa.py' ftp = FTP('ftp..com') ftp.login()ftp.storlines ('STOR ' + fname, f)ftp.retrlines('LIST') f.

Re: [Tutor] First program -- would like comments and criticisms

2006-02-19 Thread benmarkwell
Thanks Andrei for your input.I've already implemented a couple of your suggestions and will certainlygive the others a go. On 2/18/06, Andrei <[EMAIL PROTECTED]> wrote: [EMAIL PROTECTED] wrote:> Here is my first stab at putting together a working program. It is a> glossary that you can add words a

[Tutor] First program -- would like comments and criticisms

2006-02-18 Thread benmarkwell
Here is my first stab at putting together a working program. It is a glossary that you can add words and definitions to, or look up words and their definitions.  There are a couple of problems here and there, but it basically does what I set out for it to do. All comments and criticisms are welcome