Lines Matching refs:compile
51 self.assertRaises(SyntaxError, compiler.compile,
55 compiler.compile(buf, basename, "exec")
64 compiler.compile("class foo():pass\n\n","<string>","exec")
67 compiler.compile("def g(): yield\n\n", "<string>", "exec")
72 c = compiler.compile('f(x=1, *(2, 3), y=4)', '<string>', 'exec')
80 c = compiler.compile("try:\n 1//0\nexcept:\n e = 1\nfinally:\n f = 1",
91 c = compiler.compile('"doc"', '<string>', 'exec')
93 c = compiler.compile('def f():\n "doc"', '<string>', 'exec')
127 c = compiler.compile('def g():\n'
139 c = compiler.compile('list((i,j) for i in range(3) if i < 3'
146 c = compiler.compile('{1, 2, 3}', '<string>', 'eval')
148 c = compiler.compile('{1, 2, 3,}', '<string>', 'eval')
152 c = compiler.compile('{1:2, 2:3, 3:4}', '<string>', 'eval')
154 c = compiler.compile('{1:2, 2:3, 3:4,}', '<string>', 'eval')
158 c = compiler.compile('{x for x in range(1, 4)}', '<string>', 'eval')
160 c = compiler.compile('{x * y for x in range(3) if x != 0'
167 c = compiler.compile('{x:x+1 for x in range(1, 4)}', '<string>', 'eval')
169 c = compiler.compile('{(x, y) : y for x in range(2) if x != 0'
177 c = compiler.compile('from __future__ import with_statement\n'
189 c = compiler.compile('from __future__ import with_statement\n'
209 c = compiler.compile('from __future__ import with_statement\n'
222 code = compiler.compile('global x\nx=1', '<string>', 'exec')
230 c = compiler.compile('from __future__ import print_function\n'
241 compile(src, "", "exec")