Re: [Tutor] file fetcher class object through http

2011-08-19 Thread James Thornton
> Essentially, I want to write a class that finds, and downloads a file from a > web server. mostly, I am looking for a smart class implementation that has > well-considered API and method choices. httplib2 (http://code.google.com/p/httplib2) by Joe Gregorio of Google is what I use. It has an intu

Re: [Tutor] file fetcher class object through http

2011-08-19 Thread Steven D'Aprano
Oh, I forgot to mention... Artie Ziff wrote: Essentially, I want to write a class that finds, and downloads a file from a web server. [...] mostly, I am looking for a smart class implementation that has well-considered API and method choices. Have you looked at the code in the Python stand

Re: [Tutor] file fetcher class object through http

2011-08-19 Thread Steven D'Aprano
Artie Ziff wrote: Hello.. I like reading different people's implementations of python as it helps me decide what is necessary vs what is not. Essentially, I want to write a class that finds, and downloads a file from a web server. Such tools already exist, although they may not be written

[Tutor] file fetcher class object through http

2011-08-19 Thread Artie Ziff
Hello.. I like reading different people's implementations of python as it helps me decide what is necessary vs what is not. Essentially, I want to write a class that finds, and downloads a file from a web server. Of course I may add some file matching features through regex... and other th

Re: [Tutor] Best way to store and access a fixed coordinate list

2011-08-19 Thread David Crisp
Dont worry! I solved this. I had a brain fade earlier today when I was working on the problem and it wasnt untill this evening when I got home and relaxed that what I was after came to mind. The following code example does the basics of what I was trying to do. Its pretty damn simple. so i was