mirror of
https://github.com/python/cpython.git
synced 2025-09-18 14:40:43 +00:00
Add optional 'force' argument (default 0) to load_dict().
If set, redo the display even if it's the same dict.
This commit is contained in:
parent
0e5088fcc4
commit
105b9c7de4
1 changed files with 2 additions and 2 deletions
|
@ -220,8 +220,8 @@ class NamespaceViewer:
|
||||||
|
|
||||||
dict = -1
|
dict = -1
|
||||||
|
|
||||||
def load_dict(self, dict):
|
def load_dict(self, dict, force=0):
|
||||||
if dict is self.dict:
|
if dict is self.dict and not force:
|
||||||
return
|
return
|
||||||
subframe = self.subframe
|
subframe = self.subframe
|
||||||
frame = self.frame
|
frame = self.frame
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue