mirror of
https://github.com/python/cpython.git
synced 2025-07-19 01:05:26 +00:00
Use METH_VARARGS instead of numeric constant 1 in method def. tables
This commit is contained in:
parent
14f515844d
commit
e365fb8d1f
12 changed files with 178 additions and 107 deletions
|
@ -337,9 +337,11 @@ be relied upon, and the number should be seen purely as a magic cookie.\n\
|
|||
A thread's identity may be reused for another thread after it exits.";
|
||||
|
||||
static PyMethodDef thread_methods[] = {
|
||||
{"start_new_thread", (PyCFunction)thread_PyThread_start_new_thread, 1,
|
||||
{"start_new_thread", (PyCFunction)thread_PyThread_start_new_thread,
|
||||
METH_VARARGS,
|
||||
start_new_doc},
|
||||
{"start_new", (PyCFunction)thread_PyThread_start_new_thread, 1,
|
||||
{"start_new", (PyCFunction)thread_PyThread_start_new_thread,
|
||||
METH_VARARGS,
|
||||
start_new_doc},
|
||||
{"allocate_lock", (PyCFunction)thread_PyThread_allocate_lock, 0,
|
||||
allocate_doc},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue