Уведомления

Группа в Telegram: @pythonsu

#1 Авг. 17, 2009 13:14:26

topazz
От:
Зарегистрирован: 2008-09-12
Сообщения: 56
Репутация: +  0  -
Профиль   Отправить e-mail  

Komodo + threading

Собственно проблема такая.

Берем код

import threading

def proc(p):
print "Start thread " + p

p1 = threading.Thread(target=proc, name="p1", args=["1"])
p2 = threading.Thread(target=proc, name="p2", args=["2"])

p1.start()
p2.start()
Делаем F5, получаем

ERROR: dbgp.client: 
The main thread of this application is exiting while there are still threads
alive. When the main thread exits, it is system defined whether the other
threads survive.

See Caveats at http://docs.python.org/lib/module-thread.html
И усе. В эклипсе например нормально все отрабатывает, IDLE - тоже все переваривает..

Что не так?



Отредактировано (Авг. 17, 2009 13:15:16)

Офлайн

Board footer

Модераторировать

Powered by DjangoBB

Lo-Fi Version