summaryrefslogtreecommitdiffstats
path: root/Objects/object.c
diff options
context:
space:
mode:
Diffstat (limited to 'Objects/object.c')
-rw-r--r--Objects/object.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/Objects/object.c b/Objects/object.c
index 78541d1..464d7ea 100644
--- a/Objects/object.c
+++ b/Objects/object.c
@@ -169,9 +169,11 @@ setattr(v, name, w)
{
if (v->ob_type->tp_setattr == NULL) {
if (v->ob_type->tp_getattr == NULL)
- err_setstr(TypeError, "attribute-less object");
+ err_setstr(TypeError,
+ "attribute-less object (assign or del)");
else
- err_setstr(TypeError, "object has read-only attributes");
+ err_setstr(TypeError,
+ "object has read-only attributes");
return -1;
}
else {