Home
last modified time | relevance | path

Searched refs:is_tuple (Results 1 – 20 of 20) sorted by relevance

/external/python/cpython3/Lib/lib2to3/fixes/
Dfix_raise.py29 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):
Dfix_throw.py14 from ..fixer_util import Name, Call, ArgList, Attr, is_tuple
40 if is_tuple(val):
Dfix_except.py28 from ..fixer_util import Assign, Attr, Name, is_tuple, is_list, syms
77 if is_tuple(N) or is_list(N):
/external/python/cpython2/Lib/lib2to3/fixes/
Dfix_raise.py29 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):
Dfix_throw.py14 from ..fixer_util import Name, Call, ArgList, Attr, is_tuple
40 if is_tuple(val):
Dfix_except.py28 from ..fixer_util import Assign, Attr, Name, is_tuple, is_list, syms
77 if is_tuple(N) or is_list(N):
Dfix_print.py21 from ..fixer_util import Name, Call, Comma, String, is_tuple
/external/python/cpython2/Lib/lib2to3/tests/
Dtest_util.py32 def is_tuple(self, string): member in Test_is_tuple
33 return fixer_util.is_tuple(parse(string, strip_levels=2))
36 self.assertTrue(self.is_tuple("(a, b)"))
37 self.assertTrue(self.is_tuple("(a, (b, c))"))
38 self.assertTrue(self.is_tuple("((a, (b, c)),)"))
39 self.assertTrue(self.is_tuple("(a,)"))
40 self.assertTrue(self.is_tuple("()"))
43 self.assertFalse(self.is_tuple("(a)"))
44 self.assertFalse(self.is_tuple("('foo') % (b, c)"))
/external/python/cpython3/Lib/lib2to3/tests/
Dtest_util.py29 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)"))
/external/tensorflow/tensorflow/compiler/xla/python_api/
Dxla_shape.py74 def is_tuple(self): member in Shape
78 if self.is_tuple():
91 if not self.is_tuple():
/external/tensorflow/tensorflow/compiler/xla/service/
Dbuffer_assignment.h93 return !is_thread_local() && !is_tuple(); in is_reusable()
106 bool is_tuple() const { return is_tuple_; } in is_tuple() function
107 void set_is_tuple(bool is_tuple) { is_tuple_ = is_tuple; } in set_is_tuple() argument
Dhlo.proto381 bool is_tuple = 11; field
/external/python/cpython3/Lib/test/
Dtest_future.py133 self, annotation, expected=None, drop_parens=False, is_tuple=False, argument
137 expected = annotation if not is_tuple else annotation[1:-1]
/external/tensorflow/tensorflow/compiler/xla/service/cpu/
Dcpu_transfer_manager.h71 absl::Span<const std::pair<void*, int64>> buffer_data, bool is_tuple);
Dcpu_transfer_manager.cc243 absl::Span<const std::pair<void*, int64>> buffer_data, bool is_tuple) { in TransferBuffersFromOutfeedInternal() argument
279 if (is_tuple) { in TransferBuffersFromOutfeedInternal()
/external/tensorflow/tensorflow/compiler/xla/python/
Dxla_client.py530 def is_tuple(self): member in Shape
537 if not self.is_tuple():
543 if self.is_tuple():
577 if self.is_tuple():
586 if self.is_tuple():
614 if self.is_tuple():
/external/libxml2/python/
Dlibxml.c3494 int is_tuple = 0; in PyxmlNodeSet_Convert() local
3497 is_tuple = 1; in PyxmlNodeSet_Convert()
3499 is_tuple = 0; in PyxmlNodeSet_Convert()
3517 nodeSet->nodeMax = (is_tuple in PyxmlNodeSet_Convert()
3535 PyxmlNode_Get (is_tuple in PyxmlNodeSet_Convert()
3553 int is_tuple = 0; in PystringSet_Convert() local
3558 is_tuple = 1; in PystringSet_Convert()
3560 is_tuple = 0; in PystringSet_Convert()
3571 count = (is_tuple in PystringSet_Convert()
3588 (is_tuple in PystringSet_Convert()
/external/libchrome/third_party/jinja2/
Dparser.py614 is_tuple = False
622 is_tuple = True
627 if not is_tuple:
/external/python/cpython3/Lib/lib2to3/
Dfixer_util.py158 def is_tuple(node): function
/external/python/cpython2/Lib/lib2to3/
Dfixer_util.py137 def is_tuple(node): function