[Python-checkins] python/dist/src/Lib/idlelib EditorWindow.py, 1.62, 1.63 NEWS.txt, 1.49, 1.50 PyShell.py, 1.92, 1.93 idlever.py, 1.22, 1.23 rpc.py, 1.29, 1.30 run.py, 1.30, 1.31

kbk at users.sourceforge.net kbk at users.sourceforge.net
Tue Dec 21 23:10:49 CET 2004


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

Modified Files:
	EditorWindow.py NEWS.txt PyShell.py idlever.py rpc.py run.py 
Log Message:
The remote procedure call module rpc.py can now access data attributes of
remote registered objects.  Changes to these attributes are local, however.

M EditorWindow.py
M NEWS.txt
M PyShell.py
M idlever.py
M rpc.py
M run.py



Index: EditorWindow.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/idlelib/EditorWindow.py,v
retrieving revision 1.62
retrieving revision 1.63
diff -u -d -r1.62 -r1.63
--- EditorWindow.py	22 Aug 2004 05:14:31 -0000	1.62
+++ EditorWindow.py	21 Dec 2004 22:10:31 -0000	1.63
@@ -37,7 +37,7 @@
             raise ImportError, 'No source for module ' + module.__name__
     return file, filename, descr
 
-class EditorWindow:
+class EditorWindow(object):
     from Percolator import Percolator
     from ColorDelegator import ColorDelegator
     from UndoDelegator import UndoDelegator
@@ -1297,7 +1297,7 @@
 _tokenize = tokenize
 del tokenize
 
-class IndentSearcher:
+class IndentSearcher(object):
 
     # .run() chews over the Text widget, looking for a block opener
     # and the stmt following it.  Returns a pair,

Index: NEWS.txt
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/idlelib/NEWS.txt,v
retrieving revision 1.49
retrieving revision 1.50
diff -u -d -r1.49 -r1.50
--- NEWS.txt	30 Nov 2004 01:28:55 -0000	1.49
+++ NEWS.txt	21 Dec 2004 22:10:32 -0000	1.50
@@ -1,3 +1,11 @@
+What's New in IDLE 1.2a0?
+=======================
+
+*Release date: XX-XXX-2005*
+
+- The remote procedure call module rpc.py can now access data attributes of
+  remote registered objects.  Changes to these attributes are local, however.
+
 What's New in IDLE 1.1?
 =======================
 

Index: PyShell.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/idlelib/PyShell.py,v
retrieving revision 1.92
retrieving revision 1.93
diff -u -d -r1.92 -r1.93
--- PyShell.py	13 Nov 2004 21:05:58 -0000	1.92
+++ PyShell.py	21 Dec 2004 22:10:32 -0000	1.93
@@ -1186,7 +1186,7 @@
             if not use_subprocess:
                 raise KeyboardInterrupt
 
-class PseudoFile:
+class PseudoFile(object):
 
     def __init__(self, shell, tags, encoding=None):
         self.shell = shell

Index: idlever.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/idlelib/idlever.py,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -d -r1.22 -r1.23
--- idlever.py	29 Nov 2004 01:40:31 -0000	1.22
+++ idlever.py	21 Dec 2004 22:10:32 -0000	1.23
@@ -1 +1 @@
-IDLE_VERSION = "1.1"
+IDLE_VERSION = "1.2a0"

Index: rpc.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/idlelib/rpc.py,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -d -r1.29 -r1.30
--- rpc.py	12 Feb 2004 17:35:09 -0000	1.29
+++ rpc.py	21 Dec 2004 22:10:32 -0000	1.30
@@ -121,7 +121,7 @@
 response_queue = Queue.Queue(0)
 
 
-class SocketIO:
+class SocketIO(object):
 
     nextseq = 0
 
@@ -475,7 +475,7 @@
 
 #----------------- end class SocketIO --------------------
 
-class RemoteObject:
+class RemoteObject(object):
     # Token mix-in class
     pass
 
@@ -484,7 +484,7 @@
     objecttable[oid] = obj
     return RemoteProxy(oid)
 
-class RemoteProxy:
+class RemoteProxy(object):
 
     def __init__(self, oid):
         self.oid = oid
@@ -533,7 +533,7 @@
     def get_remote_proxy(self, oid):
         return RPCProxy(self, oid)
 
-class RPCProxy:
+class RPCProxy(object):
 
     __methods = None
     __attributes = None
@@ -549,7 +549,11 @@
             return MethodProxy(self.sockio, self.oid, name)
         if self.__attributes is None:
             self.__getattributes()
-        if not self.__attributes.has_key(name):
+        if self.__attributes.has_key(name):
+            value = self.sockio.remotecall(self.oid, '__getattribute__',
+                                           (name,), {})
+            return value
+        else:
             raise AttributeError, name
 
     def __getattributes(self):
@@ -579,7 +583,7 @@
         if not callable(attr):
             attributes[name] = 1
 
-class MethodProxy:
+class MethodProxy(object):
 
     def __init__(self, sockio, oid, name):
         self.sockio = sockio

Index: run.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/idlelib/run.py,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -d -r1.30 -r1.31
--- run.py	19 Nov 2004 15:46:49 -0000	1.30
+++ run.py	21 Dec 2004 22:10:32 -0000	1.31
@@ -270,7 +270,7 @@
         thread.interrupt_main()
 
 
-class Executive:
+class Executive(object):
 
     def __init__(self, rpchandler):
         self.rpchandler = rpchandler



More information about the Python-checkins mailing list