Mercurial > cpython-lru_cache-weakref
comparison Python/sysmodule.c @ 11882:dc65c5f6ad7c legacy-trunk
Massive patch by Skip Montanaro to add ":name" to as many
PyArg_ParseTuple() format string arguments as possible.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Tue, 29 Feb 2000 13:59:29 +0000 |
| parents | 66216f32403d |
| children | 9b9abde032b3 |
comparison
equal
deleted
inserted
replaced
| 11881:efd6315ae678 | 11882:dc65c5f6ad7c |
|---|---|
| 190 sys_setcheckinterval(self, args) | 190 sys_setcheckinterval(self, args) |
| 191 PyObject *self; | 191 PyObject *self; |
| 192 PyObject *args; | 192 PyObject *args; |
| 193 { | 193 { |
| 194 PyThreadState *tstate = PyThreadState_Get(); | 194 PyThreadState *tstate = PyThreadState_Get(); |
| 195 if (!PyArg_ParseTuple(args, "i", &tstate->interp->checkinterval)) | 195 if (!PyArg_ParseTuple(args, "i:setcheckinterval", &tstate->interp->checkinterval)) |
| 196 return NULL; | 196 return NULL; |
| 197 Py_INCREF(Py_None); | 197 Py_INCREF(Py_None); |
| 198 return Py_None; | 198 return Py_None; |
| 199 } | 199 } |
| 200 | 200 |
