Home
last modified time | relevance | path

Searched refs:fillvalue (Results 1 – 18 of 18) 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/python/cpython3/Modules/
Ditertoolsmodule.c4404 PyObject *fillvalue; member
4412 _Py_IDENTIFIER(fillvalue); in zip_longest_new()
4417 PyObject *fillvalue = Py_None; in zip_longest_new() local
4421 fillvalue = NULL; in zip_longest_new()
4423 fillvalue = _PyDict_GetItemIdWithError(kwds, &PyId_fillvalue); in zip_longest_new()
4425 if (fillvalue == NULL) { in zip_longest_new()
4474 Py_INCREF(fillvalue); in zip_longest_new()
4475 lz->fillvalue = fillvalue; in zip_longest_new()
4485 Py_XDECREF(lz->fillvalue); in zip_longest_dealloc()
4494 Py_VISIT(lz->fillvalue); in zip_longest_traverse()
[all …]
/external/python/cpython3/Lib/
Dreprlib.py9 def recursive_repr(fillvalue='...'): argument
18 return fillvalue
Dinspect.py2051 iter = itertools.zip_longest(args, defaults, fillvalue=None)
/external/tensorflow/tensorflow/python/framework/
Dcommon_shapes.py41 fillvalue=tensor_shape.Dimension(1))))
Derror_interpolation.py543 itertools.chain(*six.moves.zip_longest(seps, subs, fillvalue="")))
/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/python/cpython3/Doc/library/
Ditertools.rst61 …[0]), (p[1], q[1]), ... ``zip_longest('ABCD', 'xy', fillvalue='-') --> Ax By C…
658 .. function:: zip_longest(*iterables, fillvalue=None)
661 iterables are of uneven length, missing values are filled-in with *fillvalue*.
664 def zip_longest(*args, fillvalue=None):
665 # zip_longest('ABCD', 'xy', fillvalue='-') --> Ax By C- D-
679 iterators[i] = repeat(fillvalue)
680 value = fillvalue
687 *fillvalue* defaults to ``None``.
788 def grouper(iterable, n, fillvalue=None):
792 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/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/scapy/scapy/
Dmain.py468 fillvalue=""
/external/python/cpython3/Lib/test/
Dtest_itertools.py932 self.assertEqual(list(zip_longest(*args, **dict(fillvalue='X'))), target)
972 self.pickletest(proto, zip_longest("abc", "defgh", fillvalue=1))
1010 for i, j in zip_longest(r1, r2, fillvalue=0):
1021 it = zip_longest(r1, r2, fillvalue=0)
1640 self.assertEqual(list(zip_longest('ABCD', 'xy', fillvalue='-')),
1780 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.py298 …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::