I figured it out. It seems that depending on where the compile calls
are located, they might call the old or the new compile function.

import _ast

compile(...) # old compile

__builtins__.compile(...) # new compile

I'm looking into how to get the new compile without messing up mako's
code any more than absolutely required.

Thanks for the code. It works, and I never would have figured it out
without your help.

-Dan

On Wed, Oct 15, 2008 at 10:10 PM, Dan Eloff <[EMAIL PROTECTED]> wrote:
> Ok, I made the changes, PerformModuleReload is called, SetName is
> called, but only the builtin compile is called, the one on
> CompileHelper is never called. Any idea why? Here's my code:
> http://csharp.pastebin.com/m5a3d08cd
>
> Thanks,
> -Dan
>
_______________________________________________
Users mailing list
Users@lists.ironpython.com
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to