/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/ |
D | test_compile.py | 32 self.assertRaises(SyntaxError, eval, 'lambda a,a:0') 33 self.assertRaises(SyntaxError, eval, 'lambda a,a=1:0') 34 self.assertRaises(SyntaxError, eval, 'lambda a=1,a=1:0') 177 self.assertRaises(SyntaxError, eval, "2e") 178 self.assertRaises(SyntaxError, eval, "2.0e+") 179 self.assertRaises(SyntaxError, eval, "1e-") 180 self.assertRaises(SyntaxError, eval, "3-4e/21") 205 self.assertRaises(SyntaxError, eval, arg) 207 self.assertEqual(eval("0777"), 511) 208 self.assertEqual(eval("0777L"), 511) [all …]
|
D | test_opcodes.py | 73 f = eval('lambda: None') 74 g = eval('lambda: None') 77 f = eval('lambda a: a') 78 g = eval('lambda a: a') 81 f = eval('lambda a=1: a') 82 g = eval('lambda a=1: a') 85 f = eval('lambda: 0') 86 g = eval('lambda: 1') 89 f = eval('lambda: None') 90 g = eval('lambda a: None') [all …]
|
D | test_unary.py | 32 self.assertTrue(eval("+" + nines) == eval("+" + nines + "L")) 33 self.assertTrue(eval("-" + nines) == eval("-" + nines + "L")) 34 self.assertTrue(eval("~" + nines) == eval("~" + nines + "L")) 46 self.assertRaises(TypeError, eval, op + "'a'") 48 self.assertRaises(TypeError, eval, op + "u'a'") 50 self.assertRaises(TypeError, eval, "~2j") 51 self.assertRaises(TypeError, eval, "~2.0")
|
D | test_tcl.py | 28 tcl.eval('set a 1') 29 self.assertEqual(tcl.eval('set a'),'1') 33 self.assertRaises(TclError,tcl.eval,'set a') 37 self.assertRaises(TclError,tcl.eval,'this is wrong') 55 self.assertEqual(tcl.eval('set a'),'1') 60 self.assertEqual(tcl.eval('set a(1)'),'1') 64 tcl.eval('set a 1') 69 tcl.eval('set a(1) 1') 83 self.assertEqual(tcl.eval('info exists a'),'1') 85 self.assertEqual(tcl.eval('info exists a'),'0') [all …]
|
D | test_compiler.py | 143 self.assertEqual(eval(c), [(0, 3), (1, 3), (2, 3)]) 147 self.assertEqual(eval(c), {1,2,3}) 149 self.assertEqual(eval(c), {1,2,3}) 153 self.assertEqual(eval(c), {1:2, 2:3, 3:4}) 155 self.assertEqual(eval(c), {1:2, 2:3, 3:4}) 159 self.assertEqual(eval(c), {1, 2, 3}) 164 self.assertEqual(eval(c), {1, 2, 3, 4, 6}) 168 self.assertEqual(eval(c), {1:2, 2:3, 3:4}) 173 self.assertEqual(eval(c), {(1, 2): 2, (1, 1): 1})
|
D | test_eof.py | 11 eval("""'this is a test\ 22 eval("""'''this is a test""")
|
D | test_pep263.py | 39 self.assertRaises(SyntaxError, eval, '\xff\x20') 42 self.assertRaises(SyntaxError, eval, '\xef\xbb\x20')
|
D | test_builtin.py | 354 self.assertEqual(eval('1+1'), 2) 355 self.assertEqual(eval(' 1+1\n'), 2) 358 self.assertEqual(eval('a', globals) , 1) 359 self.assertEqual(eval('a', globals, locals), 1) 360 self.assertEqual(eval('b', globals, locals), 200) 361 self.assertEqual(eval('c', globals, locals), 300) 363 self.assertEqual(eval(unicode('1+1')), 2) 364 self.assertEqual(eval(unicode(' 1+1\n')), 2) 368 self.assertEqual(eval(unicode('a'), globals), 1) 369 self.assertEqual(eval(unicode('a'), globals, locals), 1) [all …]
|
D | test_grammar.py | 29 self.assertRaises(SyntaxError, eval, "0x") 38 x = eval(s) 48 x = eval(s) 132 x = eval('1, 0 or 1') 288 self.assertRaises(SyntaxError, eval, "f(1, *(2,3), 4)") 289 self.assertRaises(SyntaxError, eval, "f(1, x=2, *(3,4), x=5)") 686 if eval('1 <> 1'): pass 687 if eval('1 < 1 > 1 == 1 >= 1 <= 1 <> 1 != 1 in 1 not in 1 is 1 is not 1'): pass 776 x = eval('`x`') 777 x = eval('`1 or 2 or 3`') [all …]
|
D | test_longexp.py | 7 l = eval("[" + "2," * REPS + "]")
|
D | test_coercion.py | 266 self.assertRaises(TypeError, eval, 270 format_result(eval('a %s b' % op)), 293 self.assertRaises(TypeError, eval, 297 format_result(eval('%s(a, b)' % op)),
|
D | double_const.py | 21 x2 = eval(x_str)
|
D | test_long_future.py | 80 eval(overflow, namespace) 84 result = eval(underflow, namespace) 90 eval(zero, namespace)
|
D | test_popen.py | 22 got = eval(data)[1:] # strip off argv[0]
|
D | test_codeop.py | 38 d = { 'value': eval(code,ctx) } 39 r = { 'value': eval(str,ctx) }
|
/device/linaro/bootloader/edk2/StdLib/PosixLib/Err/ |
D | warn_err.c | 64 err(int eval, const char *fmt, ...) in err() argument 70 exit(eval); in err() 74 errx(int eval, const char *fmt, ...) in errx() argument 80 exit(eval); in errx()
|
/device/linaro/bootloader/edk2/StdLib/Include/ |
D | err.h | 20 void errx (int eval, const char *fmt, ...); 21 void err (int eval, const char *fmt, ...);
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Demo/sockets/ |
D | throughput.py | 43 port = eval(sys.argv[2]) 65 count = int(eval(sys.argv[2])) 68 port = eval(sys.argv[4])
|
D | udpecho.py | 32 port = eval(sys.argv[2]) 48 port = eval(sys.argv[3])
|
D | echosvr.py | 17 port = int(eval(sys.argv[1]))
|
D | rpythond.py | 18 port = int(eval(sys.argv[1]))
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Demo/classes/ |
D | Dbm.py | 25 return eval(self.db[repr(key)]) 36 res.append(eval(key))
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/tests/data/ |
D | py3_test_grammar.py | 36 self.assertRaises(SyntaxError, eval, "0x") 47 x = eval(s) 59 x = eval(s) 132 self.assertRaises(SyntaxError, eval, ".. .") 147 x = eval('1, 0 or 1') 292 self.assertRaises(SyntaxError, eval, "f(1, *(2,3), 4)") 293 self.assertRaises(SyntaxError, eval, "f(1, x=2, *(3,4), x=5)")
|
D | py2_test_grammar.py | 34 self.assertRaises(SyntaxError, eval, "0x") 43 x = eval(s) 53 x = eval(s) 137 x = eval('1, 0 or 1') 290 self.assertRaises(SyntaxError, eval, "f(1, *(2,3), 4)") 291 self.assertRaises(SyntaxError, eval, "f(1, x=2, *(3,4), x=5)")
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Demo/pdist/ |
D | security.py | 20 self._key = eval(open(keyfile).readline())
|