Mercurial > cpython-lru_cache-weakref
diff Modules/threadmodule.c @ 14363:5da406ebef55 legacy-trunk
The second argument to start_new_thread() is not a tuple, as pointed
out by Curtis Jensen on c.l.py and forwarded by Fredrik Lundh.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Fri, 01 Sep 2000 20:47:58 +0000 |
| parents | 8bd82cf361aa |
| children | 6f6f965c5e2d |
line wrap: on
line diff
--- a/Modules/threadmodule.c Fri Sep 01 20:47:37 2000 +0000 +++ b/Modules/threadmodule.c Fri Sep 01 20:47:58 2000 +0000 @@ -221,7 +221,7 @@ static PyObject * thread_PyThread_start_new_thread(PyObject *self, PyObject *fargs) { - PyObject *func, *args = NULL, *keyw = NULL; + PyObject *func, *args, *keyw = NULL; struct bootstate *boot; if (!PyArg_ParseTuple(fargs, "OO|O:start_new_thread", &func, &args, &keyw)) @@ -233,7 +233,7 @@ } if (!PyTuple_Check(args)) { PyErr_SetString(PyExc_TypeError, - "optional 2nd arg must be a tuple"); + "2nd arg must be a tuple"); return NULL; } if (keyw != NULL && !PyDict_Check(keyw)) {
