Message3702

Author certik
Recipients certik
Date 2008-10-26.21:35:11
SpamBayes Score 7.084496e-08
Marked as misclassified No
Message-id <1225056912.78.0.39932900119.issue1158@psf.upfronthosting.co.za>
In-reply-to
Content
$ 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)
History
Date User Action Args
2008-10-26 21:35:13certiksetrecipients: + certik
2008-10-26 21:35:12certiksetmessageid: <1225056912.78.0.39932900119.issue1158@psf.upfronthosting.co.za>
2008-10-26 21:35:12certiklinkissue1158 messages
2008-10-26 21:35:11certikcreate