[Python-checkins] r88258 - python/branches/py3k/Lib/idlelib/RemoteObjectBrowser.py

georg.brandl python-checkins at python.org
Sun Jan 30 09:16:07 CET 2011


Author: georg.brandl
Date: Sun Jan 30 09:16:07 2011
New Revision: 88258

Log:
#11069: fix the IDLE Stack Viewer, by not using "list" as a variable name.

Modified:
   python/branches/py3k/Lib/idlelib/RemoteObjectBrowser.py

Modified: python/branches/py3k/Lib/idlelib/RemoteObjectBrowser.py
==============================================================================
--- python/branches/py3k/Lib/idlelib/RemoteObjectBrowser.py	(original)
+++ python/branches/py3k/Lib/idlelib/RemoteObjectBrowser.py	Sun Jan 30 09:16:07 2011
@@ -17,8 +17,8 @@
         return value
 
     def _GetSubList(self):
-        list = self.__item._GetSubList()
-        return list(map(remote_object_tree_item, list))
+        sub_list = self.__item._GetSubList()
+        return list(map(remote_object_tree_item, sub_list))
 
 class StubObjectTreeItem:
     # Lives in IDLE process
@@ -32,5 +32,5 @@
         return value
 
     def _GetSubList(self):
-        list = self.sockio.remotecall(self.oid, "_GetSubList", (), {})
-        return [StubObjectTreeItem(self.sockio, oid) for oid in list]
+        sub_list = self.sockio.remotecall(self.oid, "_GetSubList", (), {})
+        return [StubObjectTreeItem(self.sockio, oid) for oid in sub_list]


More information about the Python-checkins mailing list