I'm playing around with the Abstract Syntax Tree (AST) Module, and am
having a bit of trouble creating new nodes.
In CPython the following code will work:
>>> import ast
>>> a=getattr(ast, "Assign")()
>>> print a
<_ast.Assign object at 0x2a956520d0>
In Jython, I get:
>>> import ast
>>> a=getattr(ast, "Assign")()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: Assign() takes 2-4 arguments (0 given)
Any thoughts on how I can work around to get a piece of code that will
work on both systems?
Kyle
------------------------------------------------------------------------------
_______________________________________________
Jython-users mailing list
Jython-users@...
https://lists.sourceforge.net/lists/listinfo/jython-users