Bugs item #1730136, was opened at 2007-06-02 22:20
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1730136&group_id=5470
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Tkinter
Group: Python 2.5
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: L. Peter Deutsch (lpd)
Assigned to: Martin v. Löwis (loewis)
Summary: tkFont.__eq__ gives type error
Initial Comment:
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
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1730136&group_id=5470
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com