[Python-bugs-list] [ python-Bugs-827856 ] object.h misdocuments
PyDict_SetItemString
SourceForge.net
noreply at sourceforge.net
Sun Nov 2 05:04:20 EST 2003
Bugs item #827856, was opened at 2003-10-21 17:47
Message generated for change (Settings changed) made by rhettinger
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=827856&group_id=5470
Category: Python Library
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Greg Chapman (glchapman)
>Assigned to: Raymond Hettinger (rhettinger)
Summary: object.h misdocuments PyDict_SetItemString
Initial Comment:
I just happened to notice the following in the comment
titled "Reference Counts" toward the end of object.h
(2.3.2):
Functions that 'store' objects such as PyTuple_SetItem
() and PyDict_SetItemString()
don't increment the reference count of the object
I believe PyDict_SetItemString does increment the
refcount.
----------------------------------------------------------------------
Comment By: Johan M. Hahn (johahn)
Date: 2003-10-25 04:29
Message:
Logged In: YES
user_id=887415
Hi Greg, you are right, whoever wrote it probably meant
PyList_SetItem (according to Ref.Manual 1.2.1.1 and source).
Will you submit a patch?
...johahn
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=827856&group_id=5470
More information about the Python-bugs-list
mailing list