Mercurial > cpython-lru_cache-weakref
diff Objects/typeobject.c @ 28737:d792544ab111 legacy-trunk
Improve the message about metatype/metaclass conflicts.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Wed, 23 Apr 2003 12:07:22 +0000 |
| parents | 4824aab12549 |
| children | 90342f395721 |
line wrap: on
line diff
--- a/Objects/typeobject.c Wed Apr 23 03:49:43 2003 +0000 +++ b/Objects/typeobject.c Wed Apr 23 12:07:22 2003 +0000 @@ -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) {
