/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/ |
D | ast.py | 48 if isinstance(node_or_string, basestring): 50 if isinstance(node_or_string, Expression): 53 if isinstance(node, Str): 55 elif isinstance(node, Num): 57 elif isinstance(node, Tuple): 59 elif isinstance(node, List): 61 elif isinstance(node, Dict): 64 elif isinstance(node, Name): 67 elif isinstance(node, BinOp) and \ 68 isinstance(node.op, (Add, Sub)) and \ [all …]
|
D | fractions.py | 102 if isinstance(numerator, Rational): 107 elif isinstance(numerator, float): 114 elif isinstance(numerator, Decimal): 120 elif isinstance(numerator, basestring): 151 elif (isinstance(numerator, Rational) and 152 isinstance(denominator, Rational)): 175 if isinstance(f, numbers.Integral): 177 elif not isinstance(f, float): 188 if isinstance(dec, numbers.Integral): 190 elif not isinstance(dec, Decimal): [all …]
|
D | UserList.py | 12 elif isinstance(initlist, UserList): 24 if isinstance(other, UserList): return other.data 39 if isinstance(other, UserList): 41 elif isinstance(other, type(self.data)): 49 if isinstance(other, UserList): 51 elif isinstance(other, type(self.data)): 56 if isinstance(other, UserList): 58 elif isinstance(other, type(self.data)): 63 if isinstance(other, UserList): 65 elif isinstance(other, type(self.data)): [all …]
|
D | sets.py | 132 if isinstance(other, BaseSet): 138 if isinstance(other, BaseSet): 183 if not isinstance(other, BaseSet): 201 if not isinstance(other, BaseSet): 210 if not isinstance(other, BaseSet): 224 if not isinstance(other, BaseSet): 252 if not isinstance(other, BaseSet): 327 if not isinstance(other, BaseSet): 346 if isinstance(iterable, BaseSet): 446 if isinstance(other, BaseSet): [all …]
|
D | uu.py | 51 elif isinstance(in_file, basestring): 66 elif isinstance(out_file, basestring): 98 elif isinstance(in_file, basestring): 129 elif isinstance(out_file, basestring): 180 if isinstance(output, basestring): 188 if isinstance(input, basestring):
|
D | UserString.py | 15 if isinstance(seq, basestring): 17 elif isinstance(seq, UserString): 30 if isinstance(string, UserString): 44 if isinstance(other, UserString): 46 elif isinstance(other, basestring): 51 if isinstance(other, basestring): 158 if isinstance(index, slice): 159 if isinstance(sub, UserString): 161 elif not isinstance(sub, basestring): 179 if isinstance(index, slice): [all …]
|
D | _abcoll.py | 150 if not isinstance(other, Set): 160 if not isinstance(other, Set): 165 if not isinstance(other, Set): 170 if not isinstance(other, Set): 175 if not isinstance(other, Set): 192 if not isinstance(other, Iterable): 203 if not isinstance(other, Iterable): 209 if not isinstance(other, Set): 210 if not isinstance(other, Iterable): 217 if not isinstance(other, Set): [all …]
|
D | plistlib.py | 74 if isinstance(pathOrFile, (str, unicode)): 89 if isinstance(pathOrFile, (str, unicode)): 238 if isinstance(value, (str, unicode)): 240 elif isinstance(value, bool): 247 elif isinstance(value, (int, long)): 249 elif isinstance(value, float): 251 elif isinstance(value, dict): 253 elif isinstance(value, Data): 255 elif isinstance(value, datetime.datetime): 257 elif isinstance(value, (tuple, list)): [all …]
|
D | pickletools.py | 185 assert isinstance(name, str) 188 assert isinstance(n, int) and (n >= 0 or 196 assert isinstance(doc, str) 711 assert isinstance(name, str) 714 assert isinstance(obtype, type) or isinstance(obtype, tuple) 715 if isinstance(obtype, tuple): 717 assert isinstance(contained, type) 720 assert isinstance(doc, str) 856 assert isinstance(name, str) 859 assert isinstance(code, str) [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/ |
D | ast.py | 48 if isinstance(node_or_string, basestring): 50 if isinstance(node_or_string, Expression): 53 if isinstance(node, Str): 55 elif isinstance(node, Num): 57 elif isinstance(node, Tuple): 59 elif isinstance(node, List): 61 elif isinstance(node, Dict): 64 elif isinstance(node, Name): 67 elif isinstance(node, BinOp) and \ 68 isinstance(node.op, (Add, Sub)) and \ [all …]
|
D | _abcoll.py | 151 if not isinstance(other, Set): 161 if not isinstance(other, Set): 166 if not isinstance(other, Set): 171 if not isinstance(other, Set): 181 if not isinstance(other, Set): 198 if not isinstance(other, Iterable): 212 if not isinstance(other, Iterable): 220 if not isinstance(other, Set): 221 if not isinstance(other, Iterable): 228 if not isinstance(other, Set): [all …]
|
D | inspect.py | 57 return isinstance(object, types.ModuleType) 65 return isinstance(object, (type, types.ClassType)) 76 return isinstance(object, types.MethodType) 115 return isinstance(object, types.MemberDescriptorType) 132 return isinstance(object, types.GetSetDescriptorType) 153 return isinstance(object, types.FunctionType) 179 return isinstance(object, types.GeneratorType) 189 return isinstance(object, types.TracebackType) 207 return isinstance(object, types.FrameType) 225 return isinstance(object, types.CodeType) [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/json/ |
D | encoder.py | 46 if isinstance(s, str) and HAS_UTF8.search(s) is not None: 194 if isinstance(o, basestring): 195 if isinstance(o, str): 208 if not isinstance(chunks, (list, tuple)): 232 if isinstance(o, str): 281 isinstance=isinstance, argument 312 if isinstance(value, basestring): 320 elif isinstance(value, (int, long)): 322 elif isinstance(value, float): 326 if isinstance(value, (list, tuple)): [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/json/ |
D | encoder.py | 47 if isinstance(s, str) and HAS_UTF8.search(s) is not None: 188 if isinstance(o, basestring): 189 if isinstance(o, str): 202 if not isinstance(chunks, (list, tuple)): 226 if isinstance(o, str): 275 isinstance=isinstance, argument 306 if isinstance(value, basestring): 314 elif isinstance(value, (int, long)): 316 elif isinstance(value, float): 320 if isinstance(value, (list, tuple)): [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/ |
D | test_typechecks.py | 45 self.assertEqual(isinstance(42, Integer), True) 46 self.assertEqual(isinstance(42, (Integer,)), True) 47 self.assertEqual(isinstance(3.14, Integer), False) 48 self.assertEqual(isinstance(3.14, (Integer,)), False) 51 self.assertEqual(isinstance(Integer(), Integer), True) 52 self.assertEqual(isinstance(Integer(), (Integer,)), True) 67 self.assertEqual(isinstance(SubInt(), Integer), True) 68 self.assertEqual(isinstance(SubInt(), (Integer,)), True) 69 self.assertEqual(isinstance(SubInt(), SubInt), True) 70 self.assertEqual(isinstance(SubInt(), (SubInt,)), True) [all …]
|
D | test___future__.py | 17 if obj is not None and isinstance(obj, __future__._Feature): 36 a(isinstance(t, tuple), "%s isn't tuple" % name) 39 a(isinstance(major, int), "%s major isn't int" % name) 40 a(isinstance(minor, int), "%s minor isn't int" % name) 41 a(isinstance(micro, int), "%s micro isn't int" % name) 42 a(isinstance(level, basestring), 46 a(isinstance(serial, int), "%s serial isn't int" % name) 58 a(isinstance(getattr(value, "compiler_flag"), int),
|
D | test_isinstance.py | 39 self.assertEqual(False, isinstance(I(), C())) 59 self.assertRaises(RuntimeError, isinstance, I(), C()) 71 self.assertRaises(RuntimeError, isinstance, I(), C()) 83 self.assertRaises(TypeError, isinstance, I(), C()) 188 self.assertEqual(True, isinstance(Super(), Super)) 189 self.assertEqual(False, isinstance(Super(), Child)) 190 self.assertEqual(False, isinstance(Super(), AbstractSuper)) 191 self.assertEqual(False, isinstance(Super(), AbstractChild)) 193 self.assertEqual(True, isinstance(Child(), Super)) 194 self.assertEqual(False, isinstance(Child(), AbstractSuper)) [all …]
|
D | test_pyclbr.py | 71 if isinstance(obj, FunctionType): 72 if not isinstance(classdict[name], StaticMethodType): 75 if not isinstance(obj, MethodType): 78 if (not isinstance(classdict[name], ClassMethodType) or 82 if not isinstance(classdict[name], FunctionType): 96 if isinstance(value, pyclbr.Function): 140 if isinstance(item, ClassType): 142 if isinstance(item, FunctionType): 147 if isinstance(item, (ClassType, FunctionType)):
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Python/ |
D | Python-ast.c | 3306 int isinstance; in obj2ast_mod() local 3313 isinstance = PyObject_IsInstance(obj, (PyObject*)Module_type); in obj2ast_mod() 3314 if (isinstance == -1) { in obj2ast_mod() 3317 if (isinstance) { in obj2ast_mod() 3349 isinstance = PyObject_IsInstance(obj, (PyObject*)Interactive_type); in obj2ast_mod() 3350 if (isinstance == -1) { in obj2ast_mod() 3353 if (isinstance) { in obj2ast_mod() 3385 isinstance = PyObject_IsInstance(obj, (PyObject*)Expression_type); in obj2ast_mod() 3386 if (isinstance == -1) { in obj2ast_mod() 3389 if (isinstance) { in obj2ast_mod() [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Python/ |
D | Python-ast.c | 3323 int isinstance; in obj2ast_mod() local 3330 isinstance = PyObject_IsInstance(obj, (PyObject*)Module_type); in obj2ast_mod() 3331 if (isinstance == -1) { in obj2ast_mod() 3334 if (isinstance) { in obj2ast_mod() 3366 isinstance = PyObject_IsInstance(obj, (PyObject*)Interactive_type); in obj2ast_mod() 3367 if (isinstance == -1) { in obj2ast_mod() 3370 if (isinstance) { in obj2ast_mod() 3402 isinstance = PyObject_IsInstance(obj, (PyObject*)Expression_type); in obj2ast_mod() 3403 if (isinstance == -1) { in obj2ast_mod() 3406 if (isinstance) { in obj2ast_mod() [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/distutils/command/ |
D | build_clib.py | 89 if isinstance(self.include_dirs, str): 129 if not isinstance(libraries, list): 134 if not isinstance(lib, tuple) and len(lib) != 2: 140 if not isinstance(name, str): 150 if not isinstance(build_info, dict): 172 if sources is None or not isinstance(sources, (list, tuple)): 184 if sources is None or not isinstance(sources, (list, tuple)):
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Demo/classes/ |
D | Rev.py | 75 if isinstance(seq, list): 78 elif isinstance(seq, tuple): 81 elif isinstance(seq, str):
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/unittest/ |
D | suite.py | 27 if not isinstance(other, self.__class__): 50 if isinstance(test, type) and issubclass(test, 57 if isinstance(tests, basestring): 148 if isinstance(result, _DebugResult): 184 if isinstance(result, _DebugResult): 195 if addSkip is not None and isinstance(exception, case.SkipTest): 218 if isinstance(result, _DebugResult): 243 if isinstance(result, _DebugResult):
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/distutils/ |
D | ccompiler.py | 213 if isinstance(value, str): 232 if not (isinstance(defn, tuple) and 235 (isinstance(defn[1], str) or defn[1] is None))) and 236 isinstance(defn[0], str)): 378 elif not isinstance(outdir, str): 383 elif isinstance(macros, list): 390 elif isinstance(incdirs, (list, tuple)): 438 elif not isinstance(output_dir, str): 443 elif isinstance(macros, list): 450 elif isinstance(include_dirs, (list, tuple)): [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/pgen2/ |
D | pgen.py | 77 assert isinstance(itoken, int), label 174 assert isinstance(start, NFAState) 175 assert isinstance(finish, NFAState) 181 assert isinstance(state, NFAState) 343 assert label is None or isinstance(label, str) 344 assert isinstance(next, NFAState) 350 assert isinstance(nfaset, dict) 351 assert isinstance(iter(nfaset).next(), NFAState) 352 assert isinstance(final, NFAState) 358 assert isinstance(label, str) [all …]
|