diff options
-rw-r--r-- | Objects/complexobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ complex_subtype_from_string(PyTypeObject *type, PyObject *v) } 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; } |