Mercurial > cpython-lru_cache-weakref
comparison Python/errors.c @ 22:2d3eb717a00d legacy-trunk
Added err_badcall().
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Sun, 21 Oct 1990 22:09:12 +0000 |
| parents | 33701db4ea55 |
| children | c795fdaced9b |
comparison
equal
deleted
inserted
replaced
| 21:961696ef3ab7 | 22:2d3eb717a00d |
|---|---|
| 138 err_setval(exc, v); | 138 err_setval(exc, v); |
| 139 if (v != NULL) | 139 if (v != NULL) |
| 140 DECREF(v); | 140 DECREF(v); |
| 141 return NULL; | 141 return NULL; |
| 142 } | 142 } |
| 143 | |
| 144 void | |
| 145 err_badcall() | |
| 146 { | |
| 147 err_setstr(SystemError, "bad argument to internal function"); | |
| 148 } |
