-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
when and how 'rewriting_compile' function is called? #4
Comments
I'm not sure why it would be called in your case - in python, the compilation step is generally only done when you import a new module (or e.g. use |
if "eval" or "import a new module" will call compile function,why above code does not print "rewriting_compile"? |
I'm not sure about the |
i read "rewriter.py" source code, "builtins.compile" confused me
what i understand at first is "compile function has been hooked, when run 'python xxxx.py' and compile the code, builtins.compile will be called first, so rewriting_compile function will be called".
but after i run test code as below, i am confused.
"rewriting_compile" will not be printed.
so my question is " when and how 'rewriting_compile' function is called".
The text was updated successfully, but these errors were encountered: