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 lpd
Recipients
Date 2007-06-03.05:20:25
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
The current definition is:

    def __eq__(self, other):
        return self.name == other.name and isinstance(other, Font)

This can get an AttributeError if other isn't a Font. The code should be:

    def __eq__(self, other):
        return isinstance(other, Font) and self.name == other.name
History
Date User Action Args
2007-08-23 14:54:30adminlinkissue1730136 messages
2007-08-23 14:54:30admincreate