Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:

I concur with Tal that negating size would be useless feature, and that we do 
not need an alternate equal() method. When we want to test that two strings are 
equal ignoring case we do not call a special method equalignorecase(), we just 
test that s1.casefold() == s2.casefold().

But I disagree that Font.__eq__() should be changed. The Font object is just a 
reference to the Tk font as the Path object is a reference to a file on 
filesystem. When we compare two Path objects we do not compare file sizes, 
modification times, permission bits and content. We just compare two full 
names. If two Path objects has the same full name, they are equal. If they full 
names are different, they are different, even if the corresponding files has 
the same content. The same is with Font objects.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue41851>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to