[Python-checkins] python/dist/src/Doc/lib libitertools.tex, 1.18,
1.19
gvanrossum at users.sourceforge.net
gvanrossum at users.sourceforge.net
Mon Oct 20 13:01:10 EDT 2003
- Previous message: [Python-checkins] python/dist/src/Lib/test test_class.py, 1.10,
1.10.16.1 test_errno.py, 1.8, 1.8.16.1 test_os.py, 1.18,
1.18.8.1 test_stringprep.py, 1.2, 1.2.12.1
- Next message: [Python-checkins]
python/dist/src/Doc/lib libitertools.tex, 1.12.6.6, 1.12.6.7
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/python/python/dist/src/Doc/lib
In directory sc8-pr-cvs1:/tmp/cvs-serv16118
Modified Files:
libitertools.tex
Log Message:
Use 'predicate = bool' as the default predicate for ifilter[false].
Index: libitertools.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libitertools.tex,v
retrieving revision 1.18
retrieving revision 1.19
diff -C2 -d -r1.18 -r1.19
*** libitertools.tex 5 Oct 2003 16:47:36 -0000 1.18
--- libitertools.tex 20 Oct 2003 17:01:07 -0000 1.19
***************
*** 141,146 ****
def ifilter(predicate, iterable):
if predicate is None:
! def predicate(x):
! return x
for x in iterable:
if predicate(x):
--- 141,145 ----
def ifilter(predicate, iterable):
if predicate is None:
! predicate = bool
for x in iterable:
if predicate(x):
***************
*** 158,163 ****
def ifilterfalse(predicate, iterable):
if predicate is None:
! def predicate(x):
! return x
for x in iterable:
if not predicate(x):
--- 157,161 ----
def ifilterfalse(predicate, iterable):
if predicate is None:
! predicate = bool
for x in iterable:
if not predicate(x):
- Previous message: [Python-checkins] python/dist/src/Lib/test test_class.py, 1.10,
1.10.16.1 test_errno.py, 1.8, 1.8.16.1 test_os.py, 1.18,
1.18.8.1 test_stringprep.py, 1.2, 1.2.12.1
- Next message: [Python-checkins]
python/dist/src/Doc/lib libitertools.tex, 1.12.6.6, 1.12.6.7
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Python-checkins
mailing list