[ python-Bugs-1730401 ] __cmp__ present in type but not instance??

SourceForge.net noreply at sourceforge.net
Mon Jun 4 00:04:36 CEST 2007


Bugs item #1730401, was opened at 2007-06-03 15:04
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=1730401&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: Python Interpreter Core
Group: Python 2.5
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: L. Peter Deutsch (lpd)
Assigned to: Nobody/Anonymous (nobody)
Summary: __cmp__ present in type but not instance??

Initial Comment:
hasattr(list, '__cmp__') is True, but hasattr([], '__cmp__') is False.  Doesn't the Python story about instances and classes forbid this!?

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1730401&group_id=5470


More information about the Python-bugs-list mailing list