diff options
author | Thomas Heller <theller@ctypes.org> | 2002-06-05 12:55:19 (GMT) |
---|---|---|
committer | Thomas Heller <theller@ctypes.org> | 2002-06-05 12:55:19 (GMT) |
commit | aee2d5f975dfa53fb270439d9e09d542d8ea765f (patch) | |
tree | 72db290884b9a05153418c70f3f1df18ccd49fcc /Objects/abstract.c | |
parent | dc8412e54132069f6906fdd1912a85ed0f459d26 (diff) | |
download | cpython-aee2d5f975dfa53fb270439d9e09d542d8ea765f.zip cpython-aee2d5f975dfa53fb270439d9e09d542d8ea765f.tar.gz cpython-aee2d5f975dfa53fb270439d9e09d542d8ea765f.tar.bz2 |
Better isinstance error message.
Closes SF patch # 560250.
Bugfix candidate IMO.
Diffstat (limited to 'Objects/abstract.c')
-rw-r--r-- | Objects/abstract.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Objects/abstract.c b/Objects/abstract.c index d10d9d4..917195a 100644 --- a/Objects/abstract.c +++ b/Objects/abstract.c @@ -1976,7 +1976,8 @@ PyObject_IsInstance(PyObject *inst, PyObject *cls) /* Do not mask errors. */ if (!PyErr_Occurred()) PyErr_SetString(PyExc_TypeError, - "isinstance() arg 2 must be a class or type"); + "isinstance() arg 2 must be a class, type," + " or tuple of classes and types"); return -1; } Py_DECREF(cls_bases); |