Message3702
$ cat v.py
from ast import PyCF_ONLY_AST
def parse(expr, filename='<unknown>', mode='exec'):
return compile(expr, filename, mode, PyCF_ONLY_AST)
a = parse("1/2")
e = compile(a, "<string>", 'exec')
print e
$ jython v.py
Traceback (most recent call last):
File "v.py", line 7, in <module>
e = compile(a, "<string>", 'exec')
File "<string>", line 1
<javainstance object at 1>
^
SyntaxError: line 1:0 mismatched input '<' expecting EOF (<string>, line 1) |
|
Date |
User |
Action |
Args |
2008-10-26 21:35:13 | certik | set | recipients:
+ certik |
2008-10-26 21:35:12 | certik | set | messageid: <1225056912.78.0.39932900119.issue1158@psf.upfronthosting.co.za> |
2008-10-26 21:35:12 | certik | link | issue1158 messages |
2008-10-26 21:35:11 | certik | create | |
|