[Python-checkins] cpython (2.7): Issue #25326: Improve an obscure error message.

raymond.hettinger python-checkins at python.org
Thu Oct 8 21:14:26 EDT 2015


https://hg.python.org/cpython/rev/4d1bd86d3bbd
changeset: 98608:4d1bd86d3bbd
branch: 2.7
parent: 98586:04815b55227f
user: Raymond Hettinger <python at rcn.com>
date: Thu Oct 08 21:14:15 2015 -0400
summary:
 Issue #25326: Improve an obscure error message.
files:
 Objects/abstract.c | 2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Objects/abstract.c b/Objects/abstract.c
--- a/Objects/abstract.c
+++ b/Objects/abstract.c
@@ -259,7 +259,7 @@
 pb->bf_getcharbuffer == NULL ||
 pb->bf_getsegcount == NULL) {
 PyErr_SetString(PyExc_TypeError,
- "expected a character buffer object");
+ "expected a string or other character buffer object");
 return -1;
 }
 if ((*pb->bf_getsegcount)(obj,NULL) != 1) {
-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /