From 105b9c7de40b62b19725fa16f876c382e677bb64 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Mon, 19 Oct 1998 02:19:30 +0000 Subject: Add optional 'force' argument (default 0) to load_dict(). If set, redo the display even if it's the same dict. --- Tools/idle/StackViewer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tools/idle/StackViewer.py b/Tools/idle/StackViewer.py index 7af6378..688c1b4 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 -- cgit v0.12