[ python-Bugs-1201456 ] Problem with recursion in dict (crash with core dump)

SourceForge.net noreply at sourceforge.net
Fri May 13 17:55:25 CEST 2005


Bugs item #1201456, was opened at 2005-05-13 10:43
Message generated for change (Comment added) made by rhettinger
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1201456&group_id=5470

Category: Python Interpreter Core
Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Submitted By: Vladimir Yu. Stepanov (vys)
Assigned to: Nobody/Anonymous (nobody)
Summary: Problem with recursion in dict (crash with core dump)

Initial Comment:
Please see example code. 

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

>Comment By: Raymond Hettinger (rhettinger)
Date: 2005-05-13 10:55

Message:
Logged In: YES 
user_id=80475

I get the expected behavior:

  RuntimeError: maximum recursion depth exceeded


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

Comment By: Michael Hudson (mwh)
Date: 2005-05-13 10:55

Message:
Logged In: YES 
user_id=6656

I get an infinite recursion runtime error.  What platform
are you on?

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

Comment By: Vladimir Yu. Stepanov (vys)
Date: 2005-05-13 10:46

Message:
Logged In: YES 
user_id=384980

d = {} 
 
class test: 
        def __hash__(self): 
                d[self] = None 
 
d[test()] = None 

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

Comment By: Michael Hudson (mwh)
Date: 2005-05-13 10:46

Message:
Logged In: YES 
user_id=6656

I see no code.  SF can be a pain with this...

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

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


More information about the Python-bugs-list mailing list