Searched refs:is_tuple (Results 1 – 12 of 12) sorted by relevance
/third_party/python/Lib/lib2to3/fixes/ |
D | fix_raise.py | 29 from ..fixer_util import Name, Call, Attr, ArgList, is_tuple 53 if is_tuple(exc): 54 while is_tuple(exc): 67 if is_tuple(val):
|
D | fix_throw.py | 14 from ..fixer_util import Name, Call, ArgList, Attr, is_tuple 40 if is_tuple(val):
|
D | fix_except.py | 28 from ..fixer_util import Assign, Attr, Name, is_tuple, is_list, syms 77 if is_tuple(N) or is_list(N):
|
/third_party/python/Lib/lib2to3/tests/ |
D | test_util.py | 29 def is_tuple(self, string): member in Test_is_tuple 30 return fixer_util.is_tuple(parse(string, strip_levels=2)) 33 self.assertTrue(self.is_tuple("(a, b)")) 34 self.assertTrue(self.is_tuple("(a, (b, c))")) 35 self.assertTrue(self.is_tuple("((a, (b, c)),)")) 36 self.assertTrue(self.is_tuple("(a,)")) 37 self.assertTrue(self.is_tuple("()")) 40 self.assertFalse(self.is_tuple("(a)")) 41 self.assertFalse(self.is_tuple("('foo') % (b, c)"))
|
/third_party/skia/src/core/ |
D | SkEnumerate.h | 20 template <typename> struct is_tuple : std::false_type {}; struct 21 template <typename... T> struct is_tuple<std::tuple<T...>> : std::true_type {}; 25 if constexpr (is_tuple<Captured>::value) {
|
/third_party/python/Objects/ |
D | genericaliasobject.c | 306 int is_tuple = PyTuple_Check(item); in _Py_subs_parameters() local 307 Py_ssize_t nitems = is_tuple ? PyTuple_GET_SIZE(item) : 1; in _Py_subs_parameters() 308 PyObject **argitems = is_tuple ? &PyTuple_GET_ITEM(item, 0) : &item; in _Py_subs_parameters()
|
/third_party/python/Lib/test/ |
D | test_future.py | 163 self, annotation, expected=None, drop_parens=False, is_tuple=False, argument 167 expected = annotation if not is_tuple else annotation[1:-1]
|
/third_party/node/tools/inspector_protocol/jinja2/ |
D | parser.py | 614 is_tuple = False 622 is_tuple = True 627 if not is_tuple:
|
/third_party/skia/third_party/externals/jinja2/ |
D | parser.py | 638 is_tuple = False 646 is_tuple = True 651 if not is_tuple:
|
/third_party/node/deps/v8/third_party/jinja2/ |
D | parser.py | 638 is_tuple = False 646 is_tuple = True 651 if not is_tuple:
|
/third_party/jinja2/ |
D | parser.py | 714 is_tuple = False 723 is_tuple = True 728 if not is_tuple:
|
/third_party/python/Lib/lib2to3/ |
D | fixer_util.py | 158 def is_tuple(node): function
|