Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 98779e0

Browse files
committed
Fix Greg Ward's error message nit: PyObject_SetItem and PySequenceSetItem
had slightly different error messages.
1 parent 9c7ed4c commit 98779e0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Objects/abstract.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1252,7 +1252,7 @@ PySequence_SetItem(PyObject *s, int i, PyObject *o)
12521252
return m->sq_ass_item(s, i, o);
12531253
}
12541254

1255-
type_error("object doesn't support item assignment");
1255+
type_error("object does not support item assignment");
12561256
return -1;
12571257
}
12581258

0 commit comments

Comments
 (0)