[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:
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)
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:
Basically, it means "Program it yourself, don't depend on Twisted to do it for you" :)
Does this means that threads.deferToThread will be unavailable in the future ? I need it to use twisted and python-ldap. (ldaptor seems to be broken on twisted 2.2 ).
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