IronPython compile() does not accept AST object
问题 In the documentation it says, 'source' can be either str or AST object When trying to compile my ast root: dl = compile(newRoot, '<string>', 'eval') I get this Exception: expected str, got Module I am using the last version of IronPython. Is there an idea why this does not work? all the examples I found seem to do it this way with no issues. Is there a workaround to compile an AST object? Thanks!!!! PD: I found this issue but seems to have no activity: http://ironpython.codeplex.com/workitem