[ python-Bugs-1019129 ] "rich comparison'' methods hide stack
overflow
SourceForge.net
noreply at sourceforge.net
Mon Aug 30 17:01:08 CEST 2004
Bugs item #1019129, was opened at 2004-08-30 17:01
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=1019129&group_id=5470
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: boyanb (boyanb)
Assigned to: Nobody/Anonymous (nobody)
Summary: "rich comparison'' methods hide stack overflow
Initial Comment:
I've tried the code below for both 2.2.2 and 2.3.2
>>> class DontCare(str):
... def __eq__(self, other):
... # stack overflow expected!
... return self == other
...
...
>>> print (DontCare("1") == "2")
1
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1019129&group_id=5470
More information about the Python-bugs-list
mailing list