[Python-checkins] CVS: python/dist/src/Modules xxsubtype.c,2.8,2.9

Tim Peters tim_one@users.sourceforge.net
Mon, 10 Dec 2001 14:53:32 -0800


Update of /cvsroot/python/python/dist/src/Modules
In directory usw-pr-cvs1:/tmp/cvs-serv10054/python/Modules

Modified Files:
	xxsubtype.c 
Log Message:
Give xxsubtype a module docstring, so its oddball purpose is discoverable
from a prompt without searching the source code (there was an SF bug
report about this, already closed ...  "479568 xxsubtype builtin").


Index: xxsubtype.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/xxsubtype.c,v
retrieving revision 2.8
retrieving revision 2.9
diff -C2 -d -r2.8 -r2.9
*** xxsubtype.c	2001/10/21 22:26:02	2.8
--- xxsubtype.c	2001/12/10 22:53:30	2.9
***************
*** 2,6 ****
  #include "structmember.h"
  
! /* Examples showing how to subtype the builtin list and dict types from C. */
  
  /* spamlist -- a list subtype */
--- 2,10 ----
  #include "structmember.h"
  
! static char xxsubtype__doc__[] =
! "xxsubtype is an example module showing how to subtype builtin types from C.\n"
! "test_descr.py in the standard test suite requires it in order to complete.\n"
! "If you don't care about the examples, and don't intend to run the Python\n"
! "test suite, you can recompile Python without Modules/xxsubtype.c.";
  
  /* spamlist -- a list subtype */
***************
*** 228,232 ****
  	PyObject *m, *d;
  
! 	m = Py_InitModule("xxsubtype", xxsubtype_functions);
  	if (m == NULL)
  		return;
--- 232,238 ----
  	PyObject *m, *d;
  
! 	m = Py_InitModule3("xxsubtype",
! 			   xxsubtype_functions,
! 			   xxsubtype__doc__);
  	if (m == NULL)
  		return;