diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2020-12-29 10:56:55 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-29 10:56:55 (GMT) |
commit | 1df56bc0597a051c13d53514e120e9b6764185f8 (patch) | |
tree | c3dfca8059205e1a4d6193097f4066b27f794154 /Lib/tkinter/font.py | |
parent | 156b7f7052102ee1633a18e9a136ad8c38f66db0 (diff) | |
download | cpython-1df56bc0597a051c13d53514e120e9b6764185f8.zip cpython-1df56bc0597a051c13d53514e120e9b6764185f8.tar.gz cpython-1df56bc0597a051c13d53514e120e9b6764185f8.tar.bz2 |
bpo-42759: Fix equality comparison of Variable and Font in Tkinter (GH-23968)
Objects which belong to different Tcl interpreters are now always
different, even if they have the same name.
Diffstat (limited to 'Lib/tkinter/font.py')
-rw-r--r-- | Lib/tkinter/font.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/tkinter/font.py b/Lib/tkinter/font.py index 06ed01b..3e24e28 100644 --- a/Lib/tkinter/font.py +++ b/Lib/tkinter/font.py @@ -107,7 +107,7 @@ class Font: def __eq__(self, other): if not isinstance(other, Font): return NotImplemented - return self.name == other.name + return self.name == other.name and self._tk == other._tk def __getitem__(self, key): return self.cget(key) |