diff options
| author | Georg Brandl <georg@python.org> | 2006-05-29 21:04:52 (GMT) |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2006-05-29 21:04:52 (GMT) |
| commit | 96a8c3954cbdb186bc567a490dad8987508ce268 (patch) | |
| tree | 4d6516790abcd566c43418e4c9b02e9c52cf9f2f /Modules/threadmodule.c | |
| parent | fd9a4b19e9c77e9ccc3e7fcb57051cf160c0df6d (diff) | |
| download | cpython-96a8c3954cbdb186bc567a490dad8987508ce268.zip cpython-96a8c3954cbdb186bc567a490dad8987508ce268.tar.gz cpython-96a8c3954cbdb186bc567a490dad8987508ce268.tar.bz2 | |
Make use of METH_O and METH_NOARGS where possible.
Use Py_UnpackTuple instead of PyArg_ParseTuple where possible.
Diffstat (limited to 'Modules/threadmodule.c')
| -rw-r--r-- | Modules/threadmodule.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/threadmodule.c b/Modules/threadmodule.c index 9ac9881..6169658 100644 --- a/Modules/threadmodule.c +++ b/Modules/threadmodule.c @@ -456,7 +456,8 @@ thread_PyThread_start_new_thread(PyObject *self, PyObject *fargs) struct bootstate *boot; long ident; - if (!PyArg_ParseTuple(fargs, "OO|O:start_new_thread", &func, &args, &keyw)) + if (!PyArg_UnpackTuple(fargs, "start_new_thread", 2, 3, + &func, &args, &keyw)) return NULL; if (!PyCallable_Check(func)) { PyErr_SetString(PyExc_TypeError, |
