commit | 73531a3bae554998dd7d6d5d782d44fbf0da2ee8 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Thu Dec 20 23:12:40 1990 +0000 |
committer | Guido van Rossum <guido@python.org> | Thu Dec 20 23:12:40 1990 +0000 |
tree | 086f8611c592a963c627e50b5b1d7168920a8ff2 | |
parent | 6c4f4a92ac02d2d1321ab545294078896529db2c [diff] [blame] |
Return -1 for errors.
diff --git a/Objects/object.c b/Objects/object.c index f2b4d1f..4170267 100644 --- a/Objects/object.c +++ b/Objects/object.c
@@ -157,7 +157,7 @@ err_setstr(TypeError, "attribute-less object"); else err_setstr(TypeError, "object has read-only attributes"); - return NULL; + return -1; } else { return (*v->ob_type->tp_setattr)(v, name, w);