Re: probably weird or stupid newbie dictionary question

2005-02-09 Thread hawkmoon269
Very. Thanks much. :-) h -- http://mail.python.org/mailman/listinfo/python-list

Re: probably weird or stupid newbie dictionary question

2005-02-09 Thread hawkmoon269
That makes sense. Thanks. :-) h -- http://mail.python.org/mailman/listinfo/python-list

probably weird or stupid newbie dictionary question

2005-02-09 Thread hawkmoon269
I've read in several places that a Python dictionary is analagous to some other languages' hash table (Perl's, for instance). But FMU a dictionary's keys are *themselves* hashed so that a hash table exists that maps hashed key values to keys in the dictionary. ISTM, then, that the analogy is at l

Re: ftp

2004-12-17 Thread hawkmoon269
Just implemented the latter and works beautifully! ...even resolved my other issue. Thanks again. :-). -- http://mail.python.org/mailman/listinfo/python-list

Re: ftp

2004-12-17 Thread hawkmoon269
That's a good idea. Thanks! :-) -- http://mail.python.org/mailman/listinfo/python-list

Re: ftp

2004-12-17 Thread hawkmoon269
I just wanted to indicate that a carriage return is present but not visible. hawk -- http://mail.python.org/mailman/listinfo/python-list

Re: ftp

2004-12-17 Thread hawkmoon269
It turns out that the retrlines method strips of EOL CRLF and \n. My solution was to create a new method in ftplib that doesn't do this. I'm assuming that there is a better OOP solution to this, e.g. some kind of subclassing, but do not have the expertise as yet to implement that. At any rate, ju

ftp

2004-12-15 Thread hawkmoon269
I would like to write a small ftp script that I could use in place of DOS. So far I have this -- from ftplib import FTP server = 'xxx' username = 'xxx' password = 'xxx' file = 'xxx' ftp = FTP(server) ftp.login(username, password) ftp.retrlines('RETR ' + file, open('C:\My Documents\' + file, 'w'