[Checkins] SVN: zc.ngi/trunk/src/zc/ngi/tests.py Don't try to use the asyncore select.poll support because:

Jim Fulton jim at zope.com
Mon Oct 2 07:10:44 EDT 2006


Log message for revision 70470:
  Don't try to use the asyncore select.poll support because:
  
  - It doesnt' work in Python 2.3
  
  - Doesn't seem to be any faster when it does work (might even be
    slower)
  
  - select is more tried and true.
  
  Maybe someone with more network foo can improve this or, better yet,
  provide a better implementation altogether.
  

Changed:
  U   zc.ngi/trunk/src/zc/ngi/tests.py

-=-
Modified: zc.ngi/trunk/src/zc/ngi/tests.py
===================================================================
--- zc.ngi/trunk/src/zc/ngi/tests.py	2006-10-02 11:10:41 UTC (rev 70469)
+++ zc.ngi/trunk/src/zc/ngi/tests.py	2006-10-02 11:10:43 UTC (rev 70470)
@@ -32,7 +32,7 @@
 
     >>> class Handler:
     ...     def failed_connect(connection, reason):
-    ...         print 'failed', reason
+    ...         print 'failed'
     ...         lock.release()
 
     >>> def connect(addr):
@@ -47,7 +47,7 @@
     Now let's try to connect
 
     >>> connect(('localhost', port))
-    failed connection failed
+    failed
     
     """
 



More information about the Checkins mailing list