[Python-bugs-list] [ python-Bugs-485781 ] get_refer{ent,rer}s() doesn't use `is'

noreply@sourceforge.net noreply@sourceforge.net
Mon, 26 Nov 2001 13:16:54 -0800


Bugs item #485781, was opened at 2001-11-26 13:16
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=485781&group_id=5470

Category: Python Interpreter Core
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Zooko Ozoko (zooko)
Assigned to: Nobody/Anonymous (nobody)
Summary: get_refer{ent,rer}s() doesn't use `is'

Initial Comment:
in Python 2.2b2 as packaged by debian,
gc.get_referents() seems to be using equality testing
rather than identity testing to find referents.  Example:

>>> l = [0,3,2,{},]
>>> gc.get_referents({})
[Type help() for interactive help, or help(object) for
help about object., [0, 3, 2, {}]]


The list should not have appeared in the result.



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

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