]> granicus.if.org Git - python/commitdiff
The second argument to start_new_thread() is not a tuple, as pointed
authorGuido van Rossum <guido@python.org>
Fri, 1 Sep 2000 20:47:58 +0000 (20:47 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 1 Sep 2000 20:47:58 +0000 (20:47 +0000)
out by Curtis Jensen on c.l.py and forwarded by Fredrik Lundh.

Modules/threadmodule.c

index a6251461ba767393eebb08453389612bafb6130a..46dd35a69ad744c8deb14c0b7074f87c5f5e45db 100644 (file)
@@ -221,7 +221,7 @@ t_bootstrap(void *boot_raw)
 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 @@ thread_PyThread_start_new_thread(PyObject *self, PyObject *fargs)
        }
        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)) {