Armin Ronacher <[EMAIL PROTECTED]> added the comment: The root of the problem is that ast.AST doesn't have _fields or _attributes. I think the better solution is to add these attributes to the root class which makes it easier to work with these objects.
I attached a diff for asdl_c.py which fixes that problem by adding attributes to the AST class. Run `python Parser/asdl_c.py -h Python Parser/Python.asdl` to regenerate the Python-ast.c file. Can someone review the diff? ---------- nosy: +aronacher Added file: http://bugs.python.org/file11734/asdl_c.diff _______________________________________ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue4067> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com