Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > [Twisted] potential bug in the reactor's handling events loop

Reply
Thread Tools

[Twisted] potential bug in the reactor's handling events loop

 
 
Andy Leszczynski
Guest
Posts: n/a
 
      03-01-2005
Python 2.3, one of the latest Twisted version:

I noted that under Linux there is not way to Control-C the reactor loop.
After digging a little I found that following change helpes:

[root@d1501-0a10109c internet]# diff base.py{,.ori}
>

302d301
< print "1",sysEvtTriggers
305d303
< print "2",`self._eventTriggers`
307,308c305
< for callable, args, kw in sysEvtTriggers[1]:
< print "3"
---
>
> for callable, args, kw in sysEvtTriggers[0]:

317d313
< print "4"
320d315
< print "5",`eventType`


Of course it is quick work around, not a permanent fix, but it really helps.


Please advice, Andy
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Triple nested loop python (While loop insde of for loop inside ofwhile loop) Isaac Won Python 9 03-04-2013 10:08 AM
Potential bug: ASP.NET session variables and file watcher service =?Utf-8?B?QXZp?= ASP .Net 1 05-21-2007 11:13 AM
Need a ruby math genius - potential ruby bug. Todd S. Ruby 3 01-26-2006 09:41 PM
Events Events Events Please Help Chris ASP .Net Web Controls 0 08-30-2005 08:21 PM
Potential ASP.NET bug Robert May ASP .Net 1 10-16-2003 09:30 PM



Advertisments