A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/attachments/20070214/70e146d7/attachment.htm below:

<html><body>On 08:52 pm, theller@ctypes.org wrote:<br /><br />&gt;When I last looked at twisted (that is several years ago), there were<br />&gt;several reactors - win32reactor, wxreactor, maybe even more.<br /><br />Yes. &#160;That's intentional. &#160;Each of those systems offers its own event loop, and each reactor implements the basic operations in terms of those loops.<br /><br />They all have the same API. &#160;Application code does 'from twisted.internet import reactor; reactor.listenTCP', 'reactor.callLater', etc. &#160;Only the very top-most level decides which reactor the application will use.<br /><br />&gt;And they<br />&gt;didn't even work too well. &#160;The problems I remember were that the win32reactor<br />&gt;was limited to a only handful of handles, the wxreactor didn't process<br />&gt;events when a wx modal dialog boy was displayed, and so on. &#160;Has this changed?<br /><br />win32eventreactor is limited to 64 handles because WaitForMultipleObjects is limited to 64 handles. &#160;wxreactor's event loop is ghastly and actually did pause when a modal dialog box is displayed (that has since been fixed). &#160;Process support on win32 now works in the default select reactor as well as the gtk reactor, so win32reactor is mostly a curiosity at this point (useful mainly if you want to implement your own GDI-based GUI, as PyUI did at one point), and its limitations are not as serious for Twisted as a whole.<br /><br />In other words, Twisted exposes the platform limitations in its platform-specific event loop implementations, and only works around them where it's possible to do so without masking platform functionality.<br /><br />For servers, the epoll, poll, and select reactors work just fine. &#160;The select reactor does have a maximum of FD_SETSIZE simultaneous sockets as well, but it is very easy to switch reactors if you need something more scalable.<br /><br />For clients, the best GUI toolkit for Twisted applications at this point is GTK, but WX, QT and Cocoa can all be made to work with a minimum of hassle.<br /></body></html>

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4