[Python-checkins] CVS: python/dist/src/Modules cryptmodule.c,2.9,2.10 md5module.c,2.21,2.22 pwdmodule.c,1.21,1.22 readline.c,2.26,2.27 signalmodule.c,2.52,2.53 stropmodule.c,2.71,2.72 termios.c,2.13,2.14 threadmodule.c,2.36,2.37 timemodule.c,2.99,2.100

A.M. Kuchling python-dev@python.org
Wed, 2 Aug 2000 19:34:47 -0700


Update of /cvsroot/python/python/dist/src/Modules
In directory slayer.i.sourceforge.net:/tmp/cvs-serv21741

Modified Files:
	cryptmodule.c md5module.c pwdmodule.c readline.c 
	signalmodule.c stropmodule.c termios.c threadmodule.c 
	timemodule.c 
Log Message:
Use METH_OLDARGS instead of numeric constant 0 in method def. tables


Index: cryptmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/cryptmodule.c,v
retrieving revision 2.9
retrieving revision 2.10
diff -C2 -r2.9 -r2.10
*** cryptmodule.c	2000/07/22 23:57:55	2.9
--- cryptmodule.c	2000/08/03 02:34:44	2.10
***************
*** 32,36 ****
  
  static PyMethodDef crypt_methods[] = {
! 	{"crypt",	crypt_crypt, 0, crypt_crypt__doc__},
  	{NULL,		NULL}		/* sentinel */
  };
--- 32,36 ----
  
  static PyMethodDef crypt_methods[] = {
! 	{"crypt",	crypt_crypt, METH_OLDARGS, crypt_crypt__doc__},
  	{NULL,		NULL}		/* sentinel */
  };

Index: md5module.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/md5module.c,v
retrieving revision 2.21
retrieving revision 2.22
diff -C2 -r2.21 -r2.22
*** md5module.c	2000/08/03 02:06:16	2.21
--- md5module.c	2000/08/03 02:34:44	2.22
***************
*** 127,133 ****
  
  static PyMethodDef md5_methods[] = {
! 	{"update",		(PyCFunction)md5_update, 0, update_doc},
! 	{"digest",		(PyCFunction)md5_digest, 0, digest_doc},
! 	{"copy",		(PyCFunction)md5_copy, 0, copy_doc},
  	{NULL,			NULL}		/* sentinel */
  };
--- 127,136 ----
  
  static PyMethodDef md5_methods[] = {
! 	{"update",		(PyCFunction)md5_update, 
! 	 METH_OLDARGS, update_doc},
! 	{"digest",		(PyCFunction)md5_digest, 
! 	 METH_OLDARGS, digest_doc},
! 	{"copy",		(PyCFunction)md5_copy, 
! 	 METH_OLDARGS, copy_doc},
  	{NULL,			NULL}		/* sentinel */
  };

Index: pwdmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/pwdmodule.c,v
retrieving revision 1.21
retrieving revision 1.22
diff -C2 -r1.21 -r1.22
*** pwdmodule.c	2000/07/21 06:00:07	1.21
--- pwdmodule.c	2000/08/03 02:34:44	1.22
***************
*** 129,136 ****
  
  static PyMethodDef pwd_methods[] = {
! 	{"getpwuid",	pwd_getpwuid, 0, pwd_getpwuid__doc__},
! 	{"getpwnam",	pwd_getpwnam, 0, pwd_getpwnam__doc__},
  #ifdef HAVE_GETPWENT
! 	{"getpwall",	pwd_getpwall, 0, pwd_getpwall__doc__},
  #endif
  	{NULL,		NULL}		/* sentinel */
--- 129,136 ----
  
  static PyMethodDef pwd_methods[] = {
! 	{"getpwuid",	pwd_getpwuid, METH_OLDARGS, pwd_getpwuid__doc__},
! 	{"getpwnam",	pwd_getpwnam, METH_OLDARGS, pwd_getpwnam__doc__},
  #ifdef HAVE_GETPWENT
! 	{"getpwall",	pwd_getpwall, METH_OLDARGS, pwd_getpwall__doc__},
  #endif
  	{NULL,		NULL}		/* sentinel */

Index: readline.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/readline.c,v
retrieving revision 2.26
retrieving revision 2.27
diff -C2 -r2.26 -r2.27
*** readline.c	2000/08/03 02:06:16	2.26
--- readline.c	2000/08/03 02:34:44	2.27
***************
*** 325,329 ****
  {
  	{"parse_and_bind", parse_and_bind, METH_VARARGS, doc_parse_and_bind},
! 	{"get_line_buffer", get_line_buffer, 0, doc_get_line_buffer},
  	{"insert_text", insert_text, METH_VARARGS, doc_insert_text},
  	{"read_init_file", read_init_file, METH_VARARGS, doc_read_init_file},
--- 325,330 ----
  {
  	{"parse_and_bind", parse_and_bind, METH_VARARGS, doc_parse_and_bind},
! 	{"get_line_buffer", get_line_buffer, 
! 	 METH_OLDARGS, doc_get_line_buffer},
  	{"insert_text", insert_text, METH_VARARGS, doc_insert_text},
  	{"read_init_file", read_init_file, METH_VARARGS, doc_read_init_file},
***************
*** 337,347 ****
  	 METH_VARARGS, get_history_length_doc},
  	{"set_completer", set_completer, METH_VARARGS, doc_set_completer},
! 	{"get_begidx", get_begidx, 0, doc_get_begidx},
! 	{"get_endidx", get_endidx, 0, doc_get_endidx},
  
! 	{"set_completer_delims", set_completer_delims, METH_VARARGS,
! 		doc_set_completer_delims},
! 	{"get_completer_delims", get_completer_delims, 0,
! 		doc_get_completer_delims},
  	{0, 0}
  };
--- 338,348 ----
  	 METH_VARARGS, get_history_length_doc},
  	{"set_completer", set_completer, METH_VARARGS, doc_set_completer},
! 	{"get_begidx", get_begidx, METH_OLDARGS, doc_get_begidx},
! 	{"get_endidx", get_endidx, METH_OLDARGS, doc_get_endidx},
  
! 	{"set_completer_delims", set_completer_delims, 
! 	 METH_VARARGS, doc_set_completer_delims},
! 	{"get_completer_delims", get_completer_delims, 
! 	 METH_OLDARGS, doc_get_completer_delims},
  	{0, 0}
  };

Index: signalmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/signalmodule.c,v
retrieving revision 2.52
retrieving revision 2.53
diff -C2 -r2.52 -r2.53
*** signalmodule.c	2000/07/25 12:56:37	2.52
--- signalmodule.c	2000/08/03 02:34:44	2.53
***************
*** 281,293 ****
  static PyMethodDef signal_methods[] = {
  #ifdef HAVE_ALARM
! 	{"alarm",	        signal_alarm, 0, alarm_doc},
  #endif
! 	{"signal",	        signal_signal, 0, signal_doc},
! 	{"getsignal",	        signal_getsignal, 0, getsignal_doc},
  #ifdef HAVE_PAUSE
! 	{"pause",	        signal_pause, 0, pause_doc},
  #endif
! 	{"default_int_handler", signal_default_int_handler, 0,
! 				default_int_handler_doc},
  	{NULL,			NULL}		/* sentinel */
  };
--- 281,293 ----
  static PyMethodDef signal_methods[] = {
  #ifdef HAVE_ALARM
! 	{"alarm",	        signal_alarm, METH_OLDARGS, alarm_doc},
  #endif
! 	{"signal",	        signal_signal, METH_OLDARGS, signal_doc},
! 	{"getsignal",	        signal_getsignal, METH_OLDARGS, getsignal_doc},
  #ifdef HAVE_PAUSE
! 	{"pause",	        signal_pause, METH_OLDARGS, pause_doc},
  #endif
! 	{"default_int_handler", signal_default_int_handler, 
! 	 METH_OLDARGS, default_int_handler_doc},
  	{NULL,			NULL}		/* sentinel */
  };

Index: stropmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/stropmodule.c,v
retrieving revision 2.71
retrieving revision 2.72
diff -C2 -r2.71 -r2.72
*** stropmodule.c	2000/08/03 02:06:16	2.71
--- stropmodule.c	2000/08/03 02:34:44	2.72
***************
*** 1161,1165 ****
  	{"atol",	strop_atol, 
  	 METH_VARARGS, atol__doc__},
! 	{"capitalize",	strop_capitalize, 0, capitalize__doc__},
  	{"count",	strop_count, 
  	 METH_VARARGS, count__doc__},
--- 1161,1166 ----
  	{"atol",	strop_atol, 
  	 METH_VARARGS, atol__doc__},
! 	{"capitalize",	strop_capitalize, 
! 	 METH_OLDARGS, capitalize__doc__},
  	{"count",	strop_count, 
  	 METH_VARARGS, count__doc__},
***************
*** 1172,1177 ****
  	{"joinfields",	strop_joinfields, 
  	 METH_VARARGS, joinfields__doc__},
! 	{"lstrip",	strop_lstrip, 0, lstrip__doc__},
! 	{"lower",	strop_lower, 0, lower__doc__},
  	{"maketrans",	strop_maketrans, 
  	 METH_VARARGS, maketrans__doc__},
--- 1173,1180 ----
  	{"joinfields",	strop_joinfields, 
  	 METH_VARARGS, joinfields__doc__},
! 	{"lstrip",	strop_lstrip, 
! 	 METH_OLDARGS, lstrip__doc__},
! 	{"lower",	strop_lower, 
! 	 METH_OLDARGS, lower__doc__},
  	{"maketrans",	strop_maketrans, 
  	 METH_VARARGS, maketrans__doc__},
***************
*** 1180,1193 ****
  	{"rfind",	strop_rfind, 
  	 METH_VARARGS, rfind__doc__},
! 	{"rstrip",	strop_rstrip, 0, rstrip__doc__},
  	{"split",	strop_splitfields, 
  	 METH_VARARGS, splitfields__doc__},
  	{"splitfields",	strop_splitfields, 
  	 METH_VARARGS, splitfields__doc__},
! 	{"strip",	strop_strip, 0, strip__doc__},
! 	{"swapcase",	strop_swapcase, 0, swapcase__doc__},
  	{"translate",	strop_translate, 
  	 METH_VARARGS, translate__doc__},
! 	{"upper",	strop_upper, 0, upper__doc__},
  	{NULL,		NULL}	/* sentinel */
  };
--- 1183,1200 ----
  	{"rfind",	strop_rfind, 
  	 METH_VARARGS, rfind__doc__},
! 	{"rstrip",	strop_rstrip, 
! 	 METH_OLDARGS, rstrip__doc__},
  	{"split",	strop_splitfields, 
  	 METH_VARARGS, splitfields__doc__},
  	{"splitfields",	strop_splitfields, 
  	 METH_VARARGS, splitfields__doc__},
! 	{"strip",	strop_strip, 
! 	 METH_OLDARGS, strip__doc__},
! 	{"swapcase",	strop_swapcase, 
! 	 METH_OLDARGS, swapcase__doc__},
  	{"translate",	strop_translate, 
  	 METH_VARARGS, translate__doc__},
! 	{"upper",	strop_upper, 
! 	 METH_OLDARGS, upper__doc__},
  	{NULL,		NULL}	/* sentinel */
  };

Index: termios.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/termios.c,v
retrieving revision 2.13
retrieving revision 2.14
diff -C2 -r2.13 -r2.14
*** termios.c	2000/07/21 06:00:07	2.13
--- termios.c	2000/08/03 02:34:44	2.14
***************
*** 279,288 ****
  static PyMethodDef termios_methods[] =
  {
! 	{"tcgetattr", termios_tcgetattr, 0, termios_tcgetattr__doc__},
! 	{"tcsetattr", termios_tcsetattr, 0, termios_tcsetattr__doc__},
! 	{"tcsendbreak", termios_tcsendbreak, 0, termios_tcsendbreak__doc__},
! 	{"tcdrain", termios_tcdrain, 0, termios_tcdrain__doc__},
! 	{"tcflush", termios_tcflush, 0, termios_tcflush__doc__},
! 	{"tcflow", termios_tcflow, 0, termios_tcflow__doc__},
  	{NULL, NULL}
  };
--- 279,294 ----
  static PyMethodDef termios_methods[] =
  {
! 	{"tcgetattr", termios_tcgetattr, 
! 	 METH_OLDARGS, termios_tcgetattr__doc__},
! 	{"tcsetattr", termios_tcsetattr, 
! 	 METH_OLDARGS, termios_tcsetattr__doc__},
! 	{"tcsendbreak", termios_tcsendbreak, 
! 	 METH_OLDARGS, termios_tcsendbreak__doc__},
! 	{"tcdrain", termios_tcdrain, 
! 	 METH_OLDARGS, termios_tcdrain__doc__},
! 	{"tcflush", termios_tcflush, 
! 	 METH_OLDARGS, termios_tcflush__doc__},
! 	{"tcflow", termios_tcflow, 
! 	 METH_OLDARGS, termios_tcflow__doc__},
  	{NULL, NULL}
  };

Index: threadmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/threadmodule.c,v
retrieving revision 2.36
retrieving revision 2.37
diff -C2 -r2.36 -r2.37
*** threadmodule.c	2000/08/03 02:06:16	2.36
--- threadmodule.c	2000/08/03 02:34:44	2.37
***************
*** 142,151 ****
  
  static PyMethodDef lock_methods[] = {
! 	{"acquire_lock", (PyCFunction)lock_PyThread_acquire_lock, 0, acquire_doc},
! 	{"acquire",      (PyCFunction)lock_PyThread_acquire_lock, 0, acquire_doc},
! 	{"release_lock", (PyCFunction)lock_PyThread_release_lock, 0, release_doc},
! 	{"release",      (PyCFunction)lock_PyThread_release_lock, 0, release_doc},
! 	{"locked_lock",  (PyCFunction)lock_locked_lock,  0, locked_doc},
! 	{"locked",       (PyCFunction)lock_locked_lock,  0, locked_doc},
  	{NULL,           NULL}		/* sentinel */
  };
--- 142,157 ----
  
  static PyMethodDef lock_methods[] = {
! 	{"acquire_lock", (PyCFunction)lock_PyThread_acquire_lock, 
! 	 METH_OLDARGS, acquire_doc},
! 	{"acquire",      (PyCFunction)lock_PyThread_acquire_lock, 
! 	 METH_OLDARGS, acquire_doc},
! 	{"release_lock", (PyCFunction)lock_PyThread_release_lock, 
! 	 METH_OLDARGS, release_doc},
! 	{"release",      (PyCFunction)lock_PyThread_release_lock, 
! 	 METH_OLDARGS, release_doc},
! 	{"locked_lock",  (PyCFunction)lock_locked_lock,  
! 	 METH_OLDARGS, locked_doc},
! 	{"locked",       (PyCFunction)lock_locked_lock,  
! 	 METH_OLDARGS, locked_doc},
  	{NULL,           NULL}		/* sentinel */
  };
***************
*** 344,357 ****
  	                        METH_VARARGS,
  				start_new_doc},
! 	{"allocate_lock",	(PyCFunction)thread_PyThread_allocate_lock, 0,
! 				allocate_doc},
! 	{"allocate",		(PyCFunction)thread_PyThread_allocate_lock, 0,
! 				allocate_doc},
! 	{"exit_thread",		(PyCFunction)thread_PyThread_exit_thread, 0,
! 				exit_doc},
! 	{"exit",		(PyCFunction)thread_PyThread_exit_thread, 0,
! 				exit_doc},
! 	{"get_ident",		(PyCFunction)thread_get_ident, 0,
! 				get_ident_doc},
  #ifndef NO_EXIT_PROG
  	{"exit_prog",		(PyCFunction)thread_PyThread_exit_prog},
--- 350,363 ----
  	                        METH_VARARGS,
  				start_new_doc},
! 	{"allocate_lock",	(PyCFunction)thread_PyThread_allocate_lock, 
! 	 METH_OLDARGS, allocate_doc},
! 	{"allocate",		(PyCFunction)thread_PyThread_allocate_lock, 
! 	 METH_OLDARGS, allocate_doc},
! 	{"exit_thread",		(PyCFunction)thread_PyThread_exit_thread, 
! 	 METH_OLDARGS, exit_doc},
! 	{"exit",		(PyCFunction)thread_PyThread_exit_thread, 
! 	 METH_OLDARGS, exit_doc},
! 	{"get_ident",		(PyCFunction)thread_get_ident, 
! 	 METH_OLDARGS, get_ident_doc},
  #ifndef NO_EXIT_PROG
  	{"exit_prog",		(PyCFunction)thread_PyThread_exit_prog},

Index: timemodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/timemodule.c,v
retrieving revision 2.99
retrieving revision 2.100
diff -C2 -r2.99 -r2.100
*** timemodule.c	2000/08/03 02:06:16	2.99
--- timemodule.c	2000/08/03 02:34:44	2.100
***************
*** 492,504 ****
  
  static PyMethodDef time_methods[] = {
! 	{"time",	time_time, 0, time_doc},
  #ifdef HAVE_CLOCK
! 	{"clock",	time_clock, 0, clock_doc},
  #endif
! 	{"sleep",	time_sleep, 0, sleep_doc},
! 	{"gmtime",	time_gmtime, 0, gmtime_doc},
! 	{"localtime",	time_localtime, 0, localtime_doc},
  	{"asctime",	time_asctime, METH_VARARGS, asctime_doc},
! 	{"ctime",	time_ctime, 0, ctime_doc},
  #ifdef HAVE_MKTIME
  	{"mktime",	time_mktime, METH_VARARGS, mktime_doc},
--- 492,504 ----
  
  static PyMethodDef time_methods[] = {
! 	{"time",	time_time, METH_OLDARGS, time_doc},
  #ifdef HAVE_CLOCK
! 	{"clock",	time_clock, METH_OLDARGS, clock_doc},
  #endif
! 	{"sleep",	time_sleep, METH_OLDARGS, sleep_doc},
! 	{"gmtime",	time_gmtime, METH_OLDARGS, gmtime_doc},
! 	{"localtime",	time_localtime, METH_OLDARGS, localtime_doc},
  	{"asctime",	time_asctime, METH_VARARGS, asctime_doc},
! 	{"ctime",	time_ctime, METH_OLDARGS, ctime_doc},
  #ifdef HAVE_MKTIME
  	{"mktime",	time_mktime, METH_VARARGS, mktime_doc},