[Python-checkins] python/nondist/sandbox/itertools itertools.c,1.19,1.20
gvanrossum@users.sourceforge.net
gvanrossum@users.sourceforge.net
Fri, 31 Jan 2003 12:01:03 -0800
Update of /cvsroot/python/python/nondist/sandbox/itertools
In directory sc8-pr-cvs1:/tmp/cvs-serv16695
Modified Files:
itertools.c
Log Message:
Fix some overly-long lines (one by shortening a docstring sentence).
Remove an unused variable.
Add PSF copyright.
Index: itertools.c
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/itertools/itertools.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -C2 -d -r1.19 -r1.20
*** itertools.c 31 Jan 2003 09:14:38 -0000 1.19
--- itertools.c 31 Jan 2003 20:00:56 -0000 1.20
***************
*** 4,10 ****
/* Itertools module written and maintained
by Raymond D. Hettinger <python@rcn.com>
*/
! /* dropwhile object ************************************************************/
typedef struct {
--- 4,12 ----
/* Itertools module written and maintained
by Raymond D. Hettinger <python@rcn.com>
+ Copyright (c) 2003 Python Software Foundation.
+ All rights reserved.
*/
! /* dropwhile object **********************************************************/
typedef struct {
***************
*** 160,164 ****
! /* takewhile object ************************************************************/
typedef struct {
--- 162,166 ----
! /* takewhile object **********************************************************/
typedef struct {
***************
*** 722,726 ****
{
PyObject *val;
! PyObject *iters=lz->iters, *argtuple=lz->argtuple;
int numargs, i;
--- 724,728 ----
{
PyObject *val;
! PyObject *argtuple=lz->argtuple;
int numargs, i;
***************
*** 1001,1005 ****
} else {
PyObject *good;
! good = PyObject_CallFunctionObjArgs(lz->func, item, NULL);
if (good == NULL) {
Py_DECREF(item);
--- 1003,1008 ----
} else {
PyObject *good;
! good = PyObject_CallFunctionObjArgs(lz->func,
! item, NULL);
if (good == NULL) {
Py_DECREF(item);
***************
*** 1436,1440 ****
PyDoc_STRVAR(module_doc,
! "Module implements a set of functional tools for creating and using iterators.\n\
\n\
Infinite iterators:\n\
--- 1439,1443 ----
PyDoc_STRVAR(module_doc,
! "Functional tools for creating and using iterators.\n\
\n\
Infinite iterators:\n\