Searched defs:compile_command (Results 1 - 7 of 7) sorted by relevance

/external/python/cpython2/Demo/pysvr/
H A Dpysvr.py85 code = compile_command(source)
122 from code import compile_command namespace
/external/python/cpython2/Lib/
H A Dcodeop.py39 compile_command(source, filename, symbol):
46 signature to compile_command; the difference is that if the
64 __all__ = ["compile_command", "Compile", "CommandCompiler"]
104 def compile_command(source, filename="<input>", symbol="single"): function
141 signature to compile_command; the difference is that if the
H A Dcode.py10 from codeop import CommandCompiler, compile_command namespace
13 "compile_command"]
54 Arguments are as for compile_command().
58 1) The input is incorrect; compile_command() raised an
63 compile_command() returned None. Nothing happens.
65 3) The input is complete; compile_command() returned a code
/external/python/cpython3/Lib/
H A Dcodeop.py39 compile_command(source, filename, symbol):
46 signature to compile_command; the difference is that if the
64 __all__ = ["compile_command", "Compile", "CommandCompiler"]
104 def compile_command(source, filename="<input>", symbol="single"): function
141 signature to compile_command; the difference is that if the
H A Dcode.py11 from codeop import CommandCompiler, compile_command namespace
14 "compile_command"]
42 Arguments are as for compile_command().
46 1) The input is incorrect; compile_command() raised an
51 compile_command() returned None. Nothing happens.
53 3) The input is complete; compile_command() returned a code
/external/python/cpython2/Lib/test/
H A Dtest_codeop.py8 from codeop import compile_command, PyCF_DONT_IMPLY_DEDENT namespace
25 code = compile_command(str, "<input>", symbol)
43 self.assertEqual(compile_command(str, "<input>", symbol), expected)
47 self.assertEqual(compile_command(str, symbol=symbol), None)
52 compile_command(str,symbol=symbol)
64 self.assertEqual(compile_command(""),
67 self.assertEqual(compile_command("\n"),
293 self.assertEqual(compile_command("a = 1\n", "abc").co_filename,
295 self.assertNotEqual(compile_command("a = 1\n", "abc").co_filename,
/external/python/cpython3/Lib/test/
H A Dtest_codeop.py8 from codeop import compile_command, PyCF_DONT_IMPLY_DEDENT namespace
25 code = compile_command(str, "<input>", symbol)
43 self.assertEqual(compile_command(str, "<input>", symbol), expected)
47 self.assertEqual(compile_command(str, symbol=symbol), None)
52 compile_command(str,symbol=symbol)
64 self.assertEqual(compile_command(""),
67 self.assertEqual(compile_command("\n"),
292 self.assertEqual(compile_command("a = 1\n", "abc").co_filename,
294 self.assertNotEqual(compile_command("a = 1\n", "abc").co_filename,

Completed in 619 milliseconds