[Idle-dev] CVS: idle rpc.py,1.19,1.20 NEWS.txt,1.11,1.12

Kurt B. Kaiser kbk@users.sourceforge.net
Wed, 12 Mar 2003 12:52:03 -0800


Update of /cvsroot/idlefork/idle
In directory sc8-pr-cvs1:/tmp/cvs-serv13524

Modified Files:
	rpc.py NEWS.txt 
Log Message:
Move setting of ioready 'wait' earlier in call chain, to 
rpc.SocketIO.main() and asyncreturn().  Improve comment.


Index: rpc.py
===================================================================
RCS file: /cvsroot/idlefork/idle/rpc.py,v
retrieving revision 1.19
retrieving revision 1.20
diff -C2 -r1.19 -r1.20
*** rpc.py	11 Mar 2003 22:55:54 -0000	1.19
--- rpc.py	12 Mar 2003 20:51:59 -0000	1.20
***************
*** 193,197 ****
      def asyncreturn(self, seq):
          self.debug("asyncreturn:%d:call getresponse(): " % seq)
!         response = self.getresponse(seq)
          self.debug(("asyncreturn:%d:response: " % seq), response)
          return self.decoderesponse(response)
--- 193,197 ----
      def asyncreturn(self, seq):
          self.debug("asyncreturn:%d:call getresponse(): " % seq)
!         response = self.getresponse(seq, wait=None)
          self.debug(("asyncreturn:%d:response: " % seq), response)
          return self.decoderesponse(response)
***************
*** 212,226 ****
          """Listen on socket until I/O not ready or EOF
  
!         pollpacket() will loop looking for seq number None, which never
!         comes.  The loop will exit when self.ioready() returns 0.
  
          """
          try:
!             self.getresponse(None)
          except EOFError:
              pass
  
!     def getresponse(self, myseq):
!         response = self._getresponse(myseq)
          if response is not None:
              how, what = response
--- 212,226 ----
          """Listen on socket until I/O not ready or EOF
  
!         Main thread pollresponse() will loop looking for seq number None, which
!         never comes, and exit on EOFError.
  
          """
          try:
!             self.getresponse(myseq=None, wait=None)
          except EOFError:
              pass
  
!     def getresponse(self, myseq, wait):
!         response = self._getresponse(myseq, wait)
          if response is not None:
              how, what = response
***************
*** 237,241 ****
          return obj
  
!     def _getresponse(self, myseq):
          self.debug("_getresponse:myseq:", myseq)
          if threading.currentThread() is self.mainthread:
--- 237,241 ----
          return obj
  
!     def _getresponse(self, myseq, wait):
          self.debug("_getresponse:myseq:", myseq)
          if threading.currentThread() is self.mainthread:
***************
*** 243,247 ****
              # Loop here, blocking each time until socket is ready.
              while 1:
!                 response = self.pollresponse(myseq, wait=None)
                  if response is not None:
                      return response
--- 243,247 ----
              # Loop here, blocking each time until socket is ready.
              while 1:
!                 response = self.pollresponse(myseq, wait)
                  if response is not None:
                      return response

Index: NEWS.txt
===================================================================
RCS file: /cvsroot/idlefork/idle/NEWS.txt,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -r1.11 -r1.12
*** NEWS.txt	17 Feb 2003 18:57:16 -0000	1.11
--- NEWS.txt	12 Mar 2003 20:52:00 -0000	1.12
***************
*** 8,11 ****
--- 8,26 ----
  *Release date: xx-xxx-2003*
  
+ - Implemented the 'interrupt' extension module, which allows a subthread
+   to raise a KeyboardInterrupt in the main thread.
+ 
+ - Attempting to save the shell raised an error related to saving
+   breakpoints, which are not implemented in the shell
+ 
+ - Provide a correct message when 'exit' or 'quit' are entered at the
+   IDLE command prompt  SF 695861
+ 
+ - Eliminate extra blank line in shell output caused by not flushing
+   stdout when user code ends with an unterminated print. SF 695861
+ 
+ - Moved responsibility for exception formatting (i.e. pruning IDLE internal
+   calls) out of rpc.py into the client and server.
+ 
  - Exit IDLE cleanly even when doing subprocess I/O
  
***************
*** 13,16 ****
--- 28,32 ----
  
  - Calling Run will restart the subprocess even if user code is running.
+   SF RFE 661321
  
  - Restart the subprocess if it terminates itself. (VPython programs do that)