Re: parralel downloads

2008-03-09 Thread castironpi
> > That's it.  Far easier than threads. I'll order a 'easyness' metric from the warehouse. Of course, resources are parameters to the metric, such as facility given lots of time, facility given lots of libraries, facility given hot shots, &c. > Easier? If you omit all the relevant details, yes,

Re: parralel downloads

2008-03-09 Thread Gabriel Genellina
En Sat, 08 Mar 2008 14:47:45 -0200, Gary Herron <[EMAIL PROTECTED]> escribi�: > poof65 wrote: >> For your problem you have to use threads. >> > Not at all true. Thread provide one way to solve this, but another is > the select function. For this simple case, select() may (or may not) be > easi

Re: parralel downloads

2008-03-09 Thread castironpi
> > > >>  my problem is that I would like to download several files at the time. > > > >>  As I have not much experience in programming, could you point me the > > > >>  easier ways to do this in python ? > > > Thank you both for your help. Threads are working for me. However, a > > new problem for

Re: parralel downloads

2008-03-09 Thread John Deas
On Mar 9, 1:25 pm, John Deas <[EMAIL PROTECTED]> wrote: > On Mar 8, 5:47 pm, Gary Herron <[EMAIL PROTECTED]> wrote: > > > > > poof65 wrote: > > > For your problem you have to use threads. > > > Not at all true. Thread provide one way to solve this, but another is > > the select function. For this

Re: parralel downloads

2008-03-09 Thread John Deas
On Mar 8, 5:47 pm, Gary Herron <[EMAIL PROTECTED]> wrote: > poof65 wrote: > > For your problem you have to use threads. > > Not at all true. Thread provide one way to solve this, but another is > the select function. For this simple case, select() may (or may not) be > easier to write. Pseudo-co

Re: parralel downloads

2008-03-08 Thread Gary Herron
poof65 wrote: > For your problem you have to use threads. > Not at all true. Thread provide one way to solve this, but another is the select function. For this simple case, select() may (or may not) be easier to write. Pseudo-code would look something like this: openSockets = list of soc

Re: parralel downloads

2008-03-08 Thread poof65
For your problem you have to use threads. You can have more information here. http://artfulcode.nfshost.com/files/multi-threading-in-python.html On Sat, Mar 8, 2008 at 1:11 PM, John Deas <[EMAIL PROTECTED]> wrote: > Hi, > > I would like to write a python script that will download a list of > f