[Python-checkins] python/nondist/sandbox/twister _random.c,1.11,1.12

tim_one@users.sourceforge.net tim_one@users.sourceforge.net
Sat, 28 Dec 2002 23:54:01 -0800


Update of /cvsroot/python/python/nondist/sandbox/twister
In directory sc8-pr-cvs1:/tmp/cvs-serv31612

Modified Files:
	_random.c 
Log Message:
Fiddled docstrings so they all have trailing periods, and fit on a
single (screen, not code) line.


Index: _random.c
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/twister/_random.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** _random.c	29 Dec 2002 07:45:00 -0000	1.11
--- _random.c	29 Dec 2002 07:53:59 -0000	1.12
***************
*** 431,437 ****
  static PyMethodDef random_methods[] = {
  	{"random",	(PyCFunction)random_random,  METH_NOARGS,
! 		PyDoc_STR("random() -> x in the interval [0,1).")},
  	{"seed",	(PyCFunction)random_seed,  METH_VARARGS,
! 		PyDoc_STR("seed([n]) -> None.  Defaults to current time")},
  	{"getstate",	(PyCFunction)random_getstate,  METH_NOARGS,
  		PyDoc_STR("getstate() -> tuple containing the current state.")},
--- 431,437 ----
  static PyMethodDef random_methods[] = {
  	{"random",	(PyCFunction)random_random,  METH_NOARGS,
! 		PyDoc_STR("random() -> x in the interval [0, 1).")},
  	{"seed",	(PyCFunction)random_seed,  METH_VARARGS,
! 		PyDoc_STR("seed([n]) -> None.  Defaults to current time.")},
  	{"getstate",	(PyCFunction)random_getstate,  METH_NOARGS,
  		PyDoc_STR("getstate() -> tuple containing the current state.")},
***************
*** 439,444 ****
  		PyDoc_STR("setstate(state) -> None.  Restores generator state.")},
  	{"jumpahead",	(PyCFunction)random_jumpahead,	METH_O,
! 		PyDoc_STR("jumpahead(int) -> None.  Create a new state from\n\
! the existing state and the supplied integer.")},
  	{NULL,		NULL}		/* sentinel */
  };
--- 439,444 ----
  		PyDoc_STR("setstate(state) -> None.  Restores generator state.")},
  	{"jumpahead",	(PyCFunction)random_jumpahead,	METH_O,
! 		PyDoc_STR("jumpahead(int) -> None.  Create new state from "
! 			  "existing state and integer.")},
  	{NULL,		NULL}		/* sentinel */
  };