Message3765

Author certik
Recipients certik
Date 2008-11-09.01:57:28
SpamBayes Score 1.8536567e-06
Marked as misclassified No
Message-id <1226195849.04.0.680089886605.issue1168@psf.upfronthosting.co.za>
In-reply-to
Content
Attached find a pure python
script (with no external dependecies) that reproduces the problem.

python2.6:

$ python2.6 ast_test.py
<__main__.Integer object at 0xb7bcf96c>
<__main__.Div object at 0xb7bcfbac>
<__main__.Mul object at 0xb7bcfbec>


jython

$ jython ast_test.py
Traceback (most recent call last):
 File "ast_test.py", line 79, in <module>
   print parse_expr("1", {})
 File "ast_test.py", line 75, in parse_expr
   a = Transform(local_dict, global_dict).visit(a)
 File "/home/ondra/repos/jython/dist/Lib/ast.py", line 256, in visit
   return visitor(node)
 File "/home/ondra/repos/jython/dist/Lib/ast.py", line 321, in generic_visit
   new_node = self.visit(old_value)
 File "/home/ondra/repos/jython/dist/Lib/ast.py", line 256, in visit
   return visitor(node)
 File "ast_test.py", line 36, in visit_Num
   return fix_missing_locations(Call(Name('Integer', Load()),
TypeError: org.python.antlr.ast.Name(): expected 3-4 args; got 2
History
Date User Action Args
2008-11-09 01:57:29certiksetrecipients: + certik
2008-11-09 01:57:29certiksetmessageid: <1226195849.04.0.680089886605.issue1168@psf.upfronthosting.co.za>
2008-11-09 01:57:28certiklinkissue1168 messages
2008-11-09 01:57:28certikcreate