How to kill/stop a Thread?

2006-03-22 Thread Dirk Zimmermann
Hi, I like to do the following: Via http I get a stream of data and I like to store this data with a python program. So what I need is to start the downloading and to stop it after a given time. My aproach was to use: urllib.urlretrieve("ULR","FILENAME") It is fine! But how to stop the retrie

Re: classes and list as parameter, whats wrong?

2005-08-27 Thread Dirk Zimmermann
Thanks to everyone! I think I understand the things behind this behaviour, now. And as the life goes: Today I found the description of my "problem" in the Python Tutorial! I think I should read it more often, more carefully:-) Best, Dirk -- http://mail.python.org/mailman/listinfo/python-li

Re: classes and list as parameter, whats wrong?

2005-08-26 Thread Dirk Zimmermann
Thanks for your help. * James <[EMAIL PROTECTED]> [2005-08-26 11:42]: > No, the default paramter LL is only ever created once, not > reinitialised every time the constructor is called - this is quite a > common gotcha! But still, it is not absolutely clear for me, what is going on. So, at least

classes and list as parameter, whats wrong?

2005-08-26 Thread Dirk Zimmermann
Hi! I have a problem in a program. And I don't understand what is going on. I can code something, that the "error" doesn't occur anymore. But I still don't know the reason and this is unsatisfactory: Did I understood something wrong or is there a bug? To make it short, I boiled down the program to