[Python-checkins] python/nondist/sandbox/itertools itertools.c,1.13,1.14

rhettinger@users.sourceforge.net rhettinger@users.sourceforge.net
Mon, 27 Jan 2003 18:16:16 -0800


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

Modified Files:
	itertools.c 
Log Message:
Fix-up docstrings.

Index: itertools.c
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/itertools/itertools.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** itertools.c	28 Jan 2003 01:05:28 -0000	1.13
--- itertools.c	28 Jan 2003 02:16:13 -0000	1.14
***************
*** 239,245 ****
  
  PyDoc_STRVAR(takewhile_doc,
! "takewhile(predicate, sequence) --> takewhile object\n\
  \n\
! Return those items of sequence while the predicate is true.");
  
  PyTypeObject takewhile_type = {
--- 239,246 ----
  
  PyDoc_STRVAR(takewhile_doc,
! "takewhile(predicate, iterable) --> takewhile object\n\
  \n\
! Return successive entries from an iterable as long as the \n\
! predicate evaluates to true for each entry.");
  
  PyTypeObject takewhile_type = {
***************
*** 404,411 ****
  
  PyDoc_STRVAR(islice_doc,
! "islice(function, sequence) --> islice object\n\
  \n\
! Return an iterator whose values are returned from the function evaluated\n\
! with a argument tuple taken from the given sequence.");
  
  PyTypeObject islice_type = {
--- 405,416 ----
  
  PyDoc_STRVAR(islice_doc,
! "islice(iterable, [start,] stop [, step]) --> islice object\n\
  \n\
! Return an iterator whose next() method returns selected values from an\n\
! iterable.  If start is specified, will skip all preceding elements;\n\
! otherwise, start defaults to zero.  Step defaults to one.  If\n\
! specified as another value, step determines how many values are \n\
! skipped between successive calls.  Works like a slice() on a list\n\
! but returns an iterator.");
  
  PyTypeObject islice_type = {
***************
*** 696,703 ****
  \n\
  Make an iterator that computes the function using arguments from\n\
! each of the iterables.	Like map() except 1) that it returns\n\
! an iterator instead of a list, 2) that it stops when the shortest\n\
  iterable is exhausted instead of filling in None for shorter\n\
! iterables, and 3) that it does not accept None for func.");
  
  PyTypeObject imap_type = {
--- 701,708 ----
  \n\
  Make an iterator that computes the function using arguments from\n\
! each of the iterables.	Like map() except that it returns\n\
! an iterator instead of a list and that it stops when the shortest\n\
  iterable is exhausted instead of filling in None for shorter\n\
! iterables.");
  
  PyTypeObject imap_type = {