commit | f961377e9959fd04a4351316386f15e019e89ebb | [log] [tgz] |
---|---|---|
author | Victor Stinner <victor.stinner@haypocalc.com> | Fri Dec 03 16:51:33 2010 +0000 |
committer | Victor Stinner <victor.stinner@haypocalc.com> | Fri Dec 03 16:51:33 2010 +0000 |
tree | 2605c3723db2254fd8a17519034250607c9e02fe | |
parent | b6a6f5f886ed869612e16cd1e29a1190996dc78d [diff] |
#6780: fix complex() constructor TypeError message
diff --git a/Objects/complexobject.c b/Objects/complexobject.c index c47e0d3..5999796 100644 --- a/Objects/complexobject.c +++ b/Objects/complexobject.c
@@ -783,7 +783,7 @@ } else if (PyObject_AsCharBuffer(v, &s, &len)) { PyErr_SetString(PyExc_TypeError, - "complex() arg is not a string"); + "complex() argument must be a string or a number"); return NULL; }