parsing - IronPython compile() does not accept AST object -


in documentation says, 'source' can either str or ast object

when trying compile ast root:

dl = compile(newroot, '<string>', 'eval') 

i exception:

expected str, got module 

i using last version of ironpython.

is there idea why not work? examples found seem way no issues.

is there workaround compile ast object?

thanks!!!!

pd: found issue seems have no activity: http://ironpython.codeplex.com/workitem/32526

first off, ironpython not support this.

it's quite hard support in ironpython (and didn't know needed supported until today). ironpython's _ast module wrapper around own ast, , implements conversion ironpython ast => cpython ast, not reverse. it's fair bit of (honestly, quite tedious) work, i'm not sure when fixed.

if there's popular program or library that's broken because of moves priority list, , patches welcome.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -