]> granicus.if.org Git - python/commitdiff
Add optional 'force' argument (default 0) to load_dict().
authorGuido van Rossum <guido@python.org>
Mon, 19 Oct 1998 02:19:30 +0000 (02:19 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 19 Oct 1998 02:19:30 +0000 (02:19 +0000)
If set, redo the display even if it's the same dict.

Tools/idle/StackViewer.py

index 7af6378f0769ab1bfdaacbb2fbd5c9b8f8c2537a..688c1b4335f5278e9f882b3fede7a469a8ff8ccf 100644 (file)
@@ -220,8 +220,8 @@ class NamespaceViewer:
     
     dict = -1
     
-    def load_dict(self, dict):
-        if dict is self.dict:
+    def load_dict(self, dict, force=0):
+        if dict is self.dict and not force:
             return
         subframe = self.subframe
         frame = self.frame