[Python-checkins] python/dist/src/Lib/idlelib NEWS.txt, 1.56, 1.57 run.py, 1.31, 1.32

kbk@users.sourceforge.net kbk at users.sourceforge.net
Fri May 6 01:29:56 CEST 2005


Update of /cvsroot/python/python/dist/src/Lib/idlelib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18826

Modified Files:
	NEWS.txt run.py 
Log Message:
Use Queue's blocking feature instead of sleeping in the main
loop.  Patch # 1190163 Michiel de Hoon


Index: NEWS.txt
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/idlelib/NEWS.txt,v
retrieving revision 1.56
retrieving revision 1.57
diff -u -d -r1.56 -r1.57
--- NEWS.txt	3 Feb 2005 01:37:13 -0000	1.56
+++ NEWS.txt	5 May 2005 23:29:54 -0000	1.57
@@ -3,6 +3,9 @@
 
 *Release date: XX-XXX-2005*
 
+- run.py: use Queue's blocking feature instead of sleeping in the main
+  loop.  Patch # 1190163 Michiel de Hoon
+
 - Add config-main option to make the 'history' feature non-cyclic.
   Default remains cyclic.  Python Patch 914546 Noam Raphael.
 

Index: run.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/idlelib/run.py,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -d -r1.31 -r1.32
--- run.py	21 Dec 2004 22:10:32 -0000	1.31
+++ run.py	5 May 2005 23:29:54 -0000	1.32
@@ -82,9 +82,8 @@
                     # exiting but got an extra KBI? Try again!
                     continue
             try:
-                seq, request = rpc.request_queue.get(0)
+                seq, request = rpc.request_queue.get(block=True, timeout=0.05)
             except Queue.Empty:
-                time.sleep(0.05)
                 continue
             method, args, kwargs = request
             ret = method(*args, **kwargs)



More information about the Python-checkins mailing list