Home
last modified time | relevance | path

Searched refs:eval (Results 1 – 25 of 103) sorted by relevance

12345

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dtest_compile.py32 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 …]
Dtest_opcodes.py73 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 …]
Dtest_unary.py32 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")
Dtest_tcl.py28 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 …]
Dtest_compiler.py143 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})
Dtest_eof.py11 eval("""'this is a test\
22 eval("""'''this is a test""")
Dtest_pep263.py39 self.assertRaises(SyntaxError, eval, '\xff\x20')
42 self.assertRaises(SyntaxError, eval, '\xef\xbb\x20')
Dtest_builtin.py354 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 …]
Dtest_grammar.py29 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 …]
Dtest_longexp.py7 l = eval("[" + "2," * REPS + "]")
Dtest_coercion.py266 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)),
Ddouble_const.py21 x2 = eval(x_str)
Dtest_long_future.py80 eval(overflow, namespace)
84 result = eval(underflow, namespace)
90 eval(zero, namespace)
Dtest_popen.py22 got = eval(data)[1:] # strip off argv[0]
Dtest_codeop.py38 d = { 'value': eval(code,ctx) }
39 r = { 'value': eval(str,ctx) }
/device/linaro/bootloader/edk2/StdLib/PosixLib/Err/
Dwarn_err.c64 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/
Derr.h20 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/
Dthroughput.py43 port = eval(sys.argv[2])
65 count = int(eval(sys.argv[2]))
68 port = eval(sys.argv[4])
Dudpecho.py32 port = eval(sys.argv[2])
48 port = eval(sys.argv[3])
Dechosvr.py17 port = int(eval(sys.argv[1]))
Drpythond.py18 port = int(eval(sys.argv[1]))
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Demo/classes/
DDbm.py25 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/
Dpy3_test_grammar.py36 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)")
Dpy2_test_grammar.py34 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/
Dsecurity.py20 self._key = eval(open(keyfile).readline())

12345