This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients epaine, gpolo, serhiy.storchaka, taleinat
Date 2020-09-28.15:23:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1601306633.63.0.799965907252.issue41851@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2020-09-28 15:23:53serhiy.storchakasetrecipients: + serhiy.storchaka, taleinat, gpolo, epaine
2020-09-28 15:23:53serhiy.storchakasetmessageid: <1601306633.63.0.799965907252.issue41851@roundup.psfhosted.org>
2020-09-28 15:23:53serhiy.storchakalinkissue41851 messages
2020-09-28 15:23:53serhiy.storchakacreate