[IronPython] clr.CompileModules(…) “couldn’t find member CompileModules”

Dino Viehland dinov at microsoft.com
Sun Feb 28 02:54:04 CET 2010

Lukáš wrote:
> However, unfortunately it throws an "syntax error":

Ahh, this is the detail that was missing from your stack overflow post - but it isn't strictly required, it just made it a lot more obvious.

The problem here is that "exec" is a keyword in Python so you can't use that as your function name. You could use "exec_" or execute or something like that instead. Alternately you could write:

getattr(helper, 'exec')(...)

I also answered on stack overflow in case someone runs into this issue there.

More information about the Ironpython-users mailing list