Ka-Ping Yee <ping@lfw.org>:

Changes to error messages to increase consistency & clarity.

This (mostly) closes SourceForge patch #101839.
This commit is contained in:
Fred Drake 2000-10-24 19:57:45 +00:00
parent bd6f4fba1b
commit 661ea26b3d
16 changed files with 186 additions and 144 deletions

View file

@ -175,7 +175,7 @@ PyObject_Print(PyObject *op, FILE *fp, int flags)
return -1;
#ifdef USE_STACKCHECK
if (PyOS_CheckStack()) {
PyErr_SetString(PyExc_MemoryError, "Stack overflow");
PyErr_SetString(PyExc_MemoryError, "stack overflow");
return -1;
}
#endif
@ -227,7 +227,7 @@ PyObject_Repr(PyObject *v)
return NULL;
#ifdef USE_STACKCHECK
if (PyOS_CheckStack()) {
PyErr_SetString(PyExc_MemoryError, "Stack overflow");
PyErr_SetString(PyExc_MemoryError, "stack overflow");
return NULL;
}
#endif