-
Notifications
You must be signed in to change notification settings - Fork 30
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
using in interactive mode #4
Comments
@jeog I'm not sure if it could be made to work in interactive mode. The way it works is. Once the parse() statement is hit, it loads the rest of the file into memory, comments out lines that shouldn't be used depending on the #ifdef statements, then runs the parsed file as code. |
best I could come up with is to wrap the import like so...
|
Well, you could try removing |
On current version you could use resume option. #12 |
Thanks for this, it's very helpful...
I was wondering if there is a way to run this on a file that you import from an interactive shell(or when using the -i switch)
When I try to import a file that looks like:
I get the expected behavior, but the sys.exit() after on_the_fly() in post_process() closes the interpreter. I'm not sure if there's a way around that without messing with the python compiler/interpreter or using an exception to breakout of the import process - neither of which seems very appealing.
Or am I just missing something simple?
-jon
The text was updated successfully, but these errors were encountered: