Mercurial > cpython-lru_cache-weakref
comparison Python/errors.c @ 15318:8aa947e1eee8 legacy-trunk
Ka-Ping Yee <ping@lfw.org>:
Changes to error messages to increase consistency & clarity.
This (mostly) closes SourceForge patch #101839.
| author | Fred Drake <fdrake@acm.org> |
|---|---|
| date | Tue, 24 Oct 2000 19:57:45 +0000 |
| parents | a2fcc487b9da |
| children | 36286632ff3a |
comparison
equal
deleted
inserted
replaced
| 15317:13975aec5152 | 15318:8aa947e1eee8 |
|---|---|
| 222 | 222 |
| 223 int | 223 int |
| 224 PyErr_BadArgument(void) | 224 PyErr_BadArgument(void) |
| 225 { | 225 { |
| 226 PyErr_SetString(PyExc_TypeError, | 226 PyErr_SetString(PyExc_TypeError, |
| 227 "illegal argument type for built-in operation"); | 227 "bad argument type for built-in operation"); |
| 228 return 0; | 228 return 0; |
| 229 } | 229 } |
| 230 | 230 |
| 231 PyObject * | 231 PyObject * |
| 232 PyErr_NoMemory(void) | 232 PyErr_NoMemory(void) |
