From 3ea7412d38e077a984c18f5e7f0793c285e1e1c3 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Tue, 24 Dec 1991 13:28:03 +0000 Subject: Change error messages for impossible assignment slightly. --- Objects/object.c | 6 ++++-- 1 file 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 { -- cgit v0.12