[ python-Bugs-1019129 ] "rich comparison'' methods hide stack
overflow
SourceForge.net
noreply at sourceforge.net
Tue Sep 7 05:15:12 CEST 2004
Bugs item #1019129, was opened at 2004-08-30 08:01
Message generated for change (Comment added) made by bcannon
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1019129&group_id=5470
>Category: Python Interpreter Core
>Group: Python 2.3
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
----------------------------------------------------------------------
>Comment By: Brett Cannon (bcannon)
Date: 2004-09-06 20:15
Message:
Logged In: YES
user_id=357491
This problem does not exist in 2.4 but seems to still be in 2.3 CVS.
----------------------------------------------------------------------
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