mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
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:
parent
bd6f4fba1b
commit
661ea26b3d
16 changed files with 186 additions and 144 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue