Commit 3b9fbcae authored by Stefan Behnel's avatar Stefan Behnel

fix comment

parent 865e8ea4
...@@ -3122,11 +3122,11 @@ class IndexNode(ExprNode): ...@@ -3122,11 +3122,11 @@ class IndexNode(ExprNode):
function = "PyDict_SetItem" function = "PyDict_SetItem"
# It would seem that we could specialized lists/tuples, but that # It would seem that we could specialized lists/tuples, but that
# shouldn't happen here. # shouldn't happen here.
# Both PyList_SetItem PyTuple_SetItem and a Py_ssize_t as input, # Both PyList_SetItem() and PyTuple_SetItem() take a Py_ssize_t as
# not a PyObject*, and bad conversion here would give the wrong # index instead of an object, and bad conversion here would give
# exception. Also, tuples are supposed to be immutable, and raise # the wrong exception. Also, tuples are supposed to be immutable,
# TypeErrors when trying to set their entries (PyTuple_SetItem # and raise a TypeError when trying to set their entries
# is for creating new tuples from). # (PyTuple_SetItem() is for creating new tuples from scratch).
else: else:
function = "PyObject_SetItem" function = "PyObject_SetItem"
code.putln( code.putln(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment