Message3765
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 |
|
Date |
User |
Action |
Args |
2008-11-09 01:57:29 | certik | set | recipients:
+ certik |
2008-11-09 01:57:29 | certik | set | messageid: <1226195849.04.0.680089886605.issue1168@psf.upfronthosting.co.za> |
2008-11-09 01:57:28 | certik | link | issue1168 messages |
2008-11-09 01:57:28 | certik | create | |
|