Re: please critique my thread code

2008-06-19 Thread Pau Freixes
> > MRAB wrote: > > Erm, shurely the bottleneck will be bandwidth not processor/memory?* If it > isn't then - yes, you run the risk of actually DOSing their servers! > > Your mac will run thousands of threads comfortably but your router may not > handle the thousands of TCP/IP connections you thr

Re: please critique my thread code

2008-06-19 Thread Roger Heathcote
MRAB wrote: On Jun 15, 2:29 pm, [EMAIL PROTECTED] wrote: I wrote a Python program (103 lines, below) to download developer data from SourceForge for research about social networks. Please critique the code and let me know how to improve it. An example use of the program: prompt> python downlo

Re: please critique my thread code

2008-06-15 Thread MRAB
On Jun 15, 2:29 pm, [EMAIL PROTECTED] wrote: > I wrote a Python program (103 lines, below) to download developer data > from SourceForge for research about social networks. > > Please critique the code and let me know how to improve it. > > An example use of the program: > > prompt> python download

Re: please critique my thread code

2008-06-15 Thread Pau Freixes
Hi, The main while in main thread spend all cpu time, it's more convenient put one little sleep between each iteration or use a some synchronization method between threads. And about your questions IMO: > --- Are my setup and use of threads, the queue, and "while True" loop > correct or conven

please critique my thread code

2008-06-15 Thread winston
I wrote a Python program (103 lines, below) to download developer data from SourceForge for research about social networks. Please critique the code and let me know how to improve it. An example use of the program: prompt> python download.py 1 24 The above command downloads data for the pro