File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -623,7 +623,7 @@ are always available. They are listed here in alphabetical order.
623
623
.. function :: filter(function, iterable)
624
624
625
625
Construct an iterator from those elements of *iterable * for which *function *
626
- returns true. *iterable * may be either a sequence, a container which
626
+ is true. *iterable * may be either a sequence, a container which
627
627
supports iteration, or an iterator. If *function * is ``None ``, the identity
628
628
function is assumed, that is, all elements of *iterable * that are false are
629
629
removed.
@@ -634,7 +634,7 @@ are always available. They are listed here in alphabetical order.
634
634
``None ``.
635
635
636
636
See :func: `itertools.filterfalse ` for the complementary function that returns
637
- elements of *iterable * for which *function * returns false.
637
+ elements of *iterable * for which *function * is false.
638
638
639
639
640
640
.. class :: float(x=0.0)
Original file line number Diff line number Diff line change @@ -398,7 +398,7 @@ loops that truncate the stream.
398
398
.. function :: filterfalse(predicate, iterable)
399
399
400
400
Make an iterator that filters elements from iterable returning only those for
401
- which the predicate is `` False `` . If *predicate * is ``None ``, return the items
401
+ which the predicate is false . If *predicate * is ``None ``, return the items
402
402
that are false. Roughly equivalent to::
403
403
404
404
def filterfalse(predicate, iterable):
@@ -831,7 +831,7 @@ which incur interpreter overhead.
831
831
return next(g, True) and not next(g, False)
832
832
833
833
def quantify(iterable, pred=bool):
834
- "Count how many times the predicate is true "
834
+ "Count how many times the predicate is True "
835
835
return sum(map(pred, iterable))
836
836
837
837
def ncycles(iterable, n):
You can’t perform that action at this time.
0 commit comments