A constant value -1 results in different astng trees between the
compiler.ast implementation for Python 2.4 and the _ast implementation
for 2.5 and 2.6
With Python 2.4 (compiler.ast), we get:
UnaryOp(op='-', operand=Const(1))
With Python 2.5, 2.6 (_ast) we get:
Const(-1)
Which is right? Also, is there an easy way to dump an astng tree? (I
typed all of the above manually, and found this out by playing around
in the interpreter...) Are differences between the two implementations
common or are these bugs and should they be reported as such? (The
README._ast_compatibility file says "The work is not yet finished: XXX
insert what's missing here." :-) )
Thanks
Duncan
_______________________________________________
Python-Projects mailing list
Python-Projects@lists.logilab.org
http://lists.logilab.org/mailman/listinfo/python-projects