From: Guido van Rossum Date: Mon, 19 Oct 1998 02:19:30 +0000 (+0000) Subject: Add optional 'force' argument (default 0) to load_dict(). X-Git-Tag: v1.5.2b1~319 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=105b9c7de40b62b19725fa16f876c382e677bb64;p=thirdparty%2FPython%2Fcpython.git Add optional 'force' argument (default 0) to load_dict(). If set, redo the display even if it's the same dict. --- diff --git a/Tools/idle/StackViewer.py b/Tools/idle/StackViewer.py index 7af6378f0769..688c1b4335f5 100644 --- a/Tools/idle/StackViewer.py +++ b/Tools/idle/StackViewer.py @@ -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