/external/tensorflow/tensorflow/python/kernel_tests/ |
D | ctc_decoder_ops_test.py | 34 def grouper(iterable, n, fillvalue=None): argument 38 return zip_longest(fillvalue=fillvalue, *args)
|
/external/python/cpython2/Modules/ |
D | itertoolsmodule.c | 3824 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/ |
D | itertoolsmodule.c | 4404 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/ |
D | reprlib.py | 9 def recursive_repr(fillvalue='...'): argument 18 return fillvalue
|
D | inspect.py | 2051 iter = itertools.zip_longest(args, defaults, fillvalue=None)
|
/external/tensorflow/tensorflow/python/framework/ |
D | common_shapes.py | 41 fillvalue=tensor_shape.Dimension(1))))
|
D | error_interpolation.py | 543 itertools.chain(*six.moves.zip_longest(seps, subs, fillvalue="")))
|
/external/python/cpython2/Doc/library/ |
D | itertools.rst | 63 …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/ |
D | itertools.rst | 61 …[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)
|
D | reprlib.rst | 48 .. decorator:: recursive_repr(fillvalue="...") 51 same thread. If a recursive call is made, the *fillvalue* is returned,
|
/external/python/cpython2/Lib/test/ |
D | test_xrange.py | 35 pairs = itertools.izip_longest(xs, ys, fillvalue=sentinel)
|
D | test_itertools.py | 599 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/ |
D | main.py | 468 fillvalue=""
|
/external/python/cpython3/Lib/test/ |
D | test_itertools.py | 932 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)
|
D | test_range.py | 31 pairs = itertools.zip_longest(xs, ys, fillvalue=sentinel)
|
/external/python/cpython3/Tools/clinic/ |
D | clinic.py | 298 …erator = itertools.zip_longest(version_splitter(version1), version_splitter(version2), fillvalue=0)
|
/external/python/cpython2/Doc/whatsnew/ |
D | 2.6.rst | 2007 ``izip_longest(iter1, iter2, ...[, fillvalue])`` makes tuples from 2009 others, the missing values are set to *fillvalue*. For example::
|
/external/python/cpython3/Doc/whatsnew/ |
D | 2.6.rst | 2011 ``izip_longest(iter1, iter2, ...[, fillvalue])`` makes tuples from 2013 others, the missing values are set to *fillvalue*. For example::
|