Searched refs:literal_eval (Results 1 – 3 of 3) sorted by relevance
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/ |
D | test_ast.py | 300 self.assertEqual(ast.literal_eval('[1, 2, 3]'), [1, 2, 3]) 301 self.assertEqual(ast.literal_eval('{"foo": 42}'), {"foo": 42}) 302 self.assertEqual(ast.literal_eval('(True, False, None)'), (True, False, None)) 303 self.assertRaises(ValueError, ast.literal_eval, 'foo()') 306 self.assertEqual(ast.literal_eval('2j'), 2j) 307 self.assertEqual(ast.literal_eval('10 + 2j'), 10 + 2j) 308 self.assertEqual(ast.literal_eval('1.5 - 2j'), 1.5 - 2j) 309 self.assertRaises(ValueError, ast.literal_eval, '2 + (3 + 4j)')
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/ |
D | ast.py | 40 def literal_eval(node_or_string): function
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/ |
D | ast.py | 40 def literal_eval(node_or_string): function
|