[Python-bugs-list] [ python-Bugs-571759 ] sys.getrefcount()==1 is possible
noreply@sourceforge.net
noreply@sourceforge.net
Thu, 20 Jun 2002 14:37:01 -0700
Bugs item #571759, was opened at 2002-06-20 14:41
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=571759&group_id=5470
Category: Documentation
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Gregory Smith (gregsmith)
Assigned to: Fred L. Drake, Jr. (fdrake)
Summary: sys.getrefcount()==1 is possible
Initial Comment:
the __doc__ for sys.getrefcount says
"This includes the temporary reference in the argument
list, so it is at least 2."
However,
sys.getrefcount( ('some', 'new', 'object') )
returns 1, either at the interpreter or when run in a
script. Tested on 2.2,
but it happens on 1.5 also.
Is this nit-picking?
Greg
----------------------------------------------------------------------
>Comment By: Fred L. Drake, Jr. (fdrake)
Date: 2002-06-20 17:37
Message:
Logged In: YES
user_id=3066
Yes, this is nitpicking, but that's ok -- documentation has
to be right too!
Fixed in Python/sysmodule.c revisions 2.105 and 2.98.6.5.
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=571759&group_id=5470