Author: Devin Jeanpierre <jeanpierr...@gmail.com>
Branch: 
Changeset: r83925:030e55e07c81
Date: 2016-04-26 10:50 -0700
http://bitbucket.org/pypy/pypy/changeset/030e55e07c81/

Log:    Correct docstring for PyList_SET_ITEM.

diff --git a/pypy/module/cpyext/listobject.py b/pypy/module/cpyext/listobject.py
--- a/pypy/module/cpyext/listobject.py
+++ b/pypy/module/cpyext/listobject.py
@@ -23,8 +23,8 @@
 
 @cpython_api([PyObject, Py_ssize_t, PyObject], rffi.INT_real, 
error=CANNOT_FAIL)
 def PyList_SET_ITEM(space, w_list, index, w_item):
-    """Set the item at index index in list to item.  Return 0 on success
-    or -1 on failure.
+    """Macro form of PyList_SetItem() without error checking. This is normally
+    only used to fill in new lists where there is no previous content.
 
     This function "steals" a reference to item, and, unlike PyList_SetItem(),
     does not discard a reference to any item that it being replaced; any
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to