commit | 636688d470e4df7220e7f541a495155077cc0353 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Wed Apr 23 12:07:22 2003 +0000 |
committer | Guido van Rossum <guido@python.org> | Wed Apr 23 12:07:22 2003 +0000 |
tree | d57b7b009ecc92b04317edc623d452a6de5fb035 | |
parent | f297bd1937f1fb73c7f734f6410e294da8dad12d [diff] [blame] |
Improve the message about metatype/metaclass conflicts.
diff --git a/Objects/typeobject.c b/Objects/typeobject.c index 1bfda32..cf7dd3b 100644 --- a/Objects/typeobject.c +++ b/Objects/typeobject.c
@@ -1580,7 +1580,10 @@ continue; } PyErr_SetString(PyExc_TypeError, - "metatype conflict among bases"); + "metaclass conflict: " + "the metaclass of a derived class " + "must be a (non-strict) subclass " + "of the metaclasses of all its bases"); return NULL; } if (winner != metatype) {