Home
last modified time | relevance | path

Searched refs:fillvalue (Results 1 – 22 of 22) sorted by relevance

/external/tensorflow/tensorflow/python/kernel_tests/
Dctc_decoder_ops_test.py34 def grouper(iterable, n, fillvalue=None): argument
38 return zip_longest(fillvalue=fillvalue, *args)
/external/python/cpython2/Modules/
Ditertoolsmodule.c3824 PyObject *fillvalue; member
3836 PyObject *fillvalue = Py_None; in izip_longest_new() local
3840 fillvalue = PyDict_GetItemString(kwds, "fillvalue"); in izip_longest_new()
3841 if (fillvalue == NULL || PyDict_Size(kwds) > 1) { in izip_longest_new()
3891 Py_INCREF(fillvalue); in izip_longest_new()
3892 lz->fillvalue = fillvalue; in izip_longest_new()
3902 Py_XDECREF(lz->fillvalue); in izip_longest_dealloc()
3911 Py_VISIT(lz->fillvalue); in izip_longest_traverse()
3934 Py_INCREF(lz->fillvalue); in izip_longest_next()
3935 item = lz->fillvalue; in izip_longest_next()
[all …]
/external/v8/tools/clusterfuzz/
Dv8_suppressions.py146 lines, itertools.islice(lines, 1, None), fillvalue=None)
201 line_pairs(lines1), line_pairs(lines2), fillvalue=(None, None)):
/external/python/cpython3/Lib/
Dreprlib.py9 def recursive_repr(fillvalue='...'): argument
18 return fillvalue
Dinspect.py2056 iter = itertools.zip_longest(args, defaults, fillvalue=None)
/external/python/cpython3/Modules/
Ditertoolsmodule.c4342 PyObject *fillvalue; member
4354 PyObject *fillvalue = Py_None; in zip_longest_new() local
4358 fillvalue = PyDict_GetItemString(kwds, "fillvalue"); in zip_longest_new()
4359 if (fillvalue == NULL || PyDict_GET_SIZE(kwds) > 1) { in zip_longest_new()
4410 Py_INCREF(fillvalue); in zip_longest_new()
4411 lz->fillvalue = fillvalue; in zip_longest_new()
4421 Py_XDECREF(lz->fillvalue); in zip_longest_dealloc()
4430 Py_VISIT(lz->fillvalue); in zip_longest_traverse()
4453 Py_INCREF(lz->fillvalue); in zip_longest_next()
4454 item = lz->fillvalue; in zip_longest_next()
[all …]
/external/python/cpython2/Doc/library/
Ditertools.rst63 …0]), (p[1], q[1]), ... ``izip_longest('ABCD', 'xy', fillvalue='-') --> Ax By C…
465 .. function:: izip_longest(*iterables[, fillvalue])
468 iterables are of uneven length, missing values are filled-in with *fillvalue*.
475 # izip_longest('ABCD', 'xy', fillvalue='-') --> Ax By C- D-
476 fillvalue = kwds.get('fillvalue')
482 yield fillvalue
483 fillers = repeat(fillvalue)
494 not specified, *fillvalue* defaults to ``None``.
752 def grouper(iterable, n, fillvalue=None):
756 return izip_longest(fillvalue=fillvalue, *args)
/external/v8/tools/testrunner/outproc/
Dmessage.py39 expected_lines, actual_lines, fillvalue=''):
Dbase.py140 fillvalue=''
/external/python/cpython3/Doc/library/
Ditertools.rst61 …[0]), (p[1], q[1]), ... ``zip_longest('ABCD', 'xy', fillvalue='-') --> Ax By C…
637 .. function:: zip_longest(*iterables, fillvalue=None)
640 iterables are of uneven length, missing values are filled-in with *fillvalue*.
643 def zip_longest(*args, fillvalue=None):
644 # zip_longest('ABCD', 'xy', fillvalue='-') --> Ax By C- D-
658 iterators[i] = repeat(fillvalue)
659 value = fillvalue
666 *fillvalue* defaults to ``None``.
761 def grouper(iterable, n, fillvalue=None):
765 return zip_longest(*args, fillvalue=fillvalue)
Dreprlib.rst48 .. decorator:: recursive_repr(fillvalue="...")
51 same thread. If a recursive call is made, the *fillvalue* is returned,
/external/nos/test/system-test-harness/src/test-data/NIST-CAVP/
Dnist2h.py96 words = [''.join(b) for b in itertools.izip_longest(fillvalue='', *args)]
/external/python/cpython2/Lib/test/
Dtest_xrange.py35 pairs = itertools.izip_longest(xs, ys, fillvalue=sentinel)
Dtest_itertools.py599 self.assertEqual(list(izip_longest(*args, **dict(fillvalue='X'))), target)
658 for i, j in izip_longest(r1, r2, fillvalue=0):
669 it = izip_longest(r1, r2, fillvalue=0)
1065 self.assertEqual(list(izip_longest('ABCD', 'xy', fillvalue='-')),
1201 self.makecycle(izip_longest([a]*2, [a]*3, fillvalue=b), a)
/external/tensorflow/tensorflow/python/framework/
Derror_interpolation.py441 itertools.chain(*six.moves.zip_longest(seps, subs, fillvalue="")))
Dcommon_shapes.py530 fillvalue=tensor_shape.Dimension(1))))
/external/scapy/scapy/
Dmain.py468 fillvalue=""
/external/python/cpython3/Lib/test/
Dtest_itertools.py925 self.assertEqual(list(zip_longest(*args, **dict(fillvalue='X'))), target)
965 self.pickletest(proto, zip_longest("abc", "defgh", fillvalue=1))
991 for i, j in zip_longest(r1, r2, fillvalue=0):
1002 it = zip_longest(r1, r2, fillvalue=0)
1585 self.assertEqual(list(zip_longest('ABCD', 'xy', fillvalue='-')),
1725 self.makecycle(zip_longest([a]*2, [a]*3, fillvalue=b), a)
Dtest_range.py31 pairs = itertools.zip_longest(xs, ys, fillvalue=sentinel)
/external/python/cpython3/Tools/clinic/
Dclinic.py301 …erator = itertools.zip_longest(version_splitter(version1), version_splitter(version2), fillvalue=0)
/external/python/cpython2/Doc/whatsnew/
D2.6.rst2007 ``izip_longest(iter1, iter2, ...[, fillvalue])`` makes tuples from
2009 others, the missing values are set to *fillvalue*. For example::
/external/python/cpython3/Doc/whatsnew/
D2.6.rst2011 ``izip_longest(iter1, iter2, ...[, fillvalue])`` makes tuples from
2013 others, the missing values are set to *fillvalue*. For example::