diff options
author | Guido van Rossum <guido@python.org> | 1998-10-19 02:19:30 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1998-10-19 02:19:30 (GMT) |
commit | 105b9c7de40b62b19725fa16f876c382e677bb64 (patch) | |
tree | 155d45ab4e45ea8abb3c1cf6219362b23ab32bf6 /Tools/idle/StackViewer.py | |
parent | 0e5088fcc44b42879b728a495456f4b6d4181de0 (diff) | |
download | cpython-105b9c7de40b62b19725fa16f876c382e677bb64.zip cpython-105b9c7de40b62b19725fa16f876c382e677bb64.tar.gz cpython-105b9c7de40b62b19725fa16f876c382e677bb64.tar.bz2 |
Add optional 'force' argument (default 0) to load_dict().
If set, redo the display even if it's the same dict.
Diffstat (limited to 'Tools/idle/StackViewer.py')
-rw-r--r-- | Tools/idle/StackViewer.py | 4 |
1 files 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 |