summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2003-03-12 04:25:42 (GMT)
committerRaymond Hettinger <python@rcn.com>2003-03-12 04:25:42 (GMT)
commit83245b58280a7679da0fe7216f36353e44ddf859 (patch)
tree882b53afe399536988d60f9f47e7b07e93f4a4d5 /Objects
parent45c3941510e8ad29ed2ffa2cf8fa3c1c8f7c22e5 (diff)
downloadcpython-83245b58280a7679da0fe7216f36353e44ddf859.zip
cpython-83245b58280a7679da0fe7216f36353e44ddf859.tar.gz
cpython-83245b58280a7679da0fe7216f36353e44ddf859.tar.bz2
SF bug #699934: Obscure error message
Clarify error message for mro conflicts.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/typeobject.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/Objects/typeobject.c b/Objects/typeobject.c
index a067cd5..b029777 100644
--- a/Objects/typeobject.c
+++ b/Objects/typeobject.c
@@ -1076,7 +1076,10 @@ set_mro_error(PyObject *to_merge, int *remain)
}
n = PyDict_Size(set);
- off = PyOS_snprintf(buf, sizeof(buf), "MRO conflict among bases");
+ off = PyOS_snprintf(buf, sizeof(buf), "Cannot create class.\
+The superclasses have conflicting\n\
+inheritance trees which leave the method resolution order (MRO)\n\
+undefined for bases");
i = 0;
while (PyDict_Next(set, &i, &k, &v) && off < sizeof(buf)) {
PyObject *name = class_name(k);