[Tutor] ftp transfer - queue & retry pattern

2005-11-10 Thread Frank Hoffsümmer
Hello, I want to write a module that transfers a given file to a given destination with a given protocol (ftp, sftp, scp) to start out, just ftp would be sufficient the destination machines are sometimes unavailable, or the transfer fails sometimes due to connection problems I have several questio

[Tutor] python watchfolder as daemon

2005-11-10 Thread Frank Hoffsümmer
Hello all, I found this gem of a python recipe that allows me to monitor a hierarchy of folders on my filesystem for additions / changes / removals of files: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/215418 I would like to monitor a folder hierarchy using this script but now I wonde

[Tutor] handling of tabular data

2005-10-08 Thread Frank Hoffsümmer
Hello I often find myself writing python programs to compute averages, min, max, top10 etc of columns in a table of data In these programs, I always capture each row of the table in a tuple the table is then represented by a list of tuples computing averages, min, max and other meta-information i

[Tutor] checking substrings in strings

2005-08-24 Thread Frank Hoffsümmer
Hello, I would like to check if a certain word exists in a given string. since I learned to love lists, I used if myword in mystring: ...didnt work. I have now resorted to if mystring.find(myword) >1: is this really the canonical way to check if myword exists in mystring? it feels somewhat "u