Home
last modified time | relevance | path

Searched refs:ifilter (Results 1 – 19 of 19) sorted by relevance

/external/python/cpython2/Lib/test/
Dtest_future_builtins.py24 from itertools import imap, izip, ifilter
29 self.assertEqual(filter, ifilter)
Dtest_itertools.py541 self.assertEqual(list(ifilter(isEven, range(6))), [0,2,4])
542 self.assertEqual(list(ifilter(None, [0,1,0,2,0])), [1,2])
543 self.assertEqual(list(ifilter(bool, [0,1,0,2,0])), [1,2])
544 self.assertEqual(take(4, ifilter(isEven, count())), [0,2,4,6])
545 self.assertRaises(TypeError, ifilter)
546 self.assertRaises(TypeError, ifilter, lambda x:x)
547 self.assertRaises(TypeError, ifilter, lambda x:x, range(6), 7)
548 self.assertRaises(TypeError, ifilter, isEven, 3)
549 self.assertRaises(TypeError, ifilter(range(6), range(6)).next)
1001 for f in (ifilter, ifilterfalse, imap, takewhile, dropwhile, starmap):
[all …]
/external/libmojo/base/android/java/src/org/chromium/base/
DPowerMonitor.java42 IntentFilter ifilter = new IntentFilter(Intent.ACTION_BATTERY_CHANGED); in create() local
43 Intent batteryStatusIntent = context.registerReceiver(null, ifilter); in create()
/external/libmojo/mojo/public/tools/bindings/pylib/mojom/generate/
Dconstant_resolver.py7 from itertools import ifilter
17 field = next(ifilter(lambda field: field.name == named_value.name,
/external/libmojo/third_party/jinja2/
D_compat.py39 ifilter = filter variable
65 from itertools import imap, izip, ifilter
Denvironment.py30 from jinja2._compat import imap, ifilter, string_types, iteritems, \
719 x = ifilter(filter_func, x)
/external/python/cpython2/Lib/
Dsets.py57 from itertools import ifilter, ifilterfalse
216 common = ifilter(big._data.__contains__, little)
484 for elt in ifilter(data.__contains__, other):
Dfilecmp.py14 from itertools import ifilter, ifilterfalse, imap, izip
134 self.common = map(a.__getitem__, ifilter(b.__contains__, a))
/external/autotest/server/cros/network/
Drf_switch_client_box.py70 labels_list = list(itertools.ifilter(
/external/python/cpython2/Doc/library/
Dfuture_builtins.rst41 Works like :func:`itertools.ifilter`.
Ditertools.rst55 :func:`ifilter` pred, seq elements of seq where pred(elem) is true …
344 .. function:: ifilter(predicate, iterable)
350 def ifilter(predicate, iterable):
351 # ifilter(lambda x: x%2, range(10)) --> 1 3 5 7 9
D2to3.rst302 Removes imports of :func:`itertools.ifilter`, :func:`itertools.izip`, and
308 Changes usage of :func:`itertools.ifilter`, :func:`itertools.izip`, and
Dfunctions.rst495 See :func:`itertools.ifilter` and :func:`itertools.ifilterfalse` for iterator
/external/libvpx/libvpx/vp9/encoder/
Dvp9_encoder.c4151 INTERP_FILTER ifilter; local
4158 for (ifilter = EIGHTTAP; ifilter <= EIGHTTAP_SHARP; ++ifilter)
4159 ref_total[ref] += cpi->interp_filter_selected[ref][ifilter];
4161 for (ifilter = EIGHTTAP; ifilter <= EIGHTTAP_SHARP; ++ifilter) {
4163 cpi->interp_filter_selected[LAST_FRAME][ifilter] == 0) &&
4165 cpi->interp_filter_selected[GOLDEN_FRAME][ifilter] * 50 <
4168 cpi->interp_filter_selected[ALTREF_FRAME][ifilter] * 50 <
4170 mask |= 1 << ifilter;
/external/python/cpython3/Doc/library/
D2to3.rst302 Removes imports of :func:`itertools.ifilter`, :func:`itertools.izip`, and
308 Changes usage of :func:`itertools.ifilter`, :func:`itertools.izip`, and
/external/python/cpython2/Doc/howto/
Dfunctional.rst661 :func:`itertools.ifilter`, that returns an iterator and can therefore handle
983 ``itertools.ifilter(predicate, iter)`` returns all the elements for which the
989 itertools.ifilter(is_even, itertools.count()) =>
/external/python/cpython3/Doc/whatsnew/
D2.3.rst1345 languages. For example, ``itertools.ifilter(predicate, iterator)`` returns all
/external/python/cpython2/Doc/whatsnew/
D2.3.rst1345 languages. For example, ``itertools.ifilter(predicate, iterator)`` returns all
/external/python/cpython3/Misc/
DHISTORY17027 - Code for itertools ifilter(), imap(), and izip() moved to bultins