Killing a running thread
Alexander Skwar
lists.ASkwar at DigitalProjects.com
Thu May 2 18:28:44 EDT 2002
»Alex Martelli« sagte am 2002-05-02 um 15:32:48 +0000 :
> try:
> map(myfunction, somehumongoushugelist)
> except OuttaHere:
> pass
Yes, this idea also occured to me. If I'm not mistaken, this should
break out of the map, no?
> all (if you COULD kill it, the file wouldn't be complete). If it's
> OK for the file to NOT be complete, change the single write call to,
> e.g.:
Good idea. Thanks!
Alexander Skwar
--
How to quote: http://learn.to/quote (german) http://quote.6x.to (english)
Homepage: http://www.iso-top.de | Jabber: askwar at a-message.de
iso-top.de - Die günstige Art an Linux Distributionen zu kommen
Uptime: 4 hours 19 minutes
More information about the Python-list
mailing list