[Twisted-Python] What is the meaning of "threadable.whenThreaded is deprecated Use application-level logic instead"

Helo , Vhat is the meaning of "Use application-level logic instead" ? import twisted.internet.threads /usr/lib/python2.4/site-packages/twisted/python/context.py:74: DeprecationWarning: threadable.whenThreaded is deprecated. Use application-level logic instead. threadable.whenThreaded(initThreads)

On Mon, May 01, 2006 at 10:15:18PM +0200, jmp wrote:
Basically, it means "Program it yourself, don't depend on Twisted to do it for you" :) - Colin


On 5/1/06, jmp <jean-marc.pouchoulon@ac-montpellier.fr> wrote:
I'm not really sure how you got that warning just from importing t.p.context. You're probably using out-of-sync versions of various Twisted bits. I suggest trying to install the latest Twisted release from scratch. As the warning says, it's not deferToThread that's deprecated, it's whenThreaded. -- Christopher Armstrong International Man of Twistery http://radix.twistedmatrix.com/ http://twistedmatrix.com/ http://canonical.com/


On Mon, May 01, 2006 at 10:15:18PM +0200, jmp wrote:
Basically, it means "Program it yourself, don't depend on Twisted to do it for you" :) - Colin


On 5/1/06, jmp <jean-marc.pouchoulon@ac-montpellier.fr> wrote:
I'm not really sure how you got that warning just from importing t.p.context. You're probably using out-of-sync versions of various Twisted bits. I suggest trying to install the latest Twisted release from scratch. As the warning says, it's not deferToThread that's deprecated, it's whenThreaded. -- Christopher Armstrong International Man of Twistery http://radix.twistedmatrix.com/ http://twistedmatrix.com/ http://canonical.com/

participants (3)
-
Christopher Armstrong
-
jmp
-
mcmillen@cs.cmu.edu