Commit 7741822f authored by Stefan Behnel's avatar Stefan Behnel

improve error message on slice deletion

parent e914b27b
......@@ -581,7 +581,8 @@ static CYTHON_INLINE int __Pyx_PyObject_SetSlice(
{{if access == 'Get'}}
"'%.200s' object is unsliceable", Py_TYPE(obj)->tp_name);
{{else}}
"'%.200s' object does not support slice assignment", Py_TYPE(obj)->tp_name);
"'%.200s' object does not support slice %s",
Py_TYPE(obj)->tp_name, value ? "assignment" : "deletion");
{{endif}}
bad:
......
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