-
-
Notifications
You must be signed in to change notification settings - Fork 245
-i
and -c <code>
?
#994
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
Comments
The behavior is consistent with running those commands with |
Well, Also, Since |
In which case does
The goal is that the common command line options behave the same. If they don't, that's a bug. If they are consistent with |
Then perhaps a new command line switch (which injects an initial command into the interactive session) would be best. For the record: both |
A similar option exists called |
Pasting from a string would make sense. If I have gone thru the effort of putting my
The second form works, but it creates a temp file, so I somewhat still dislike that (I think as a temp file as the very last resort workaround, the apotheosis of failed integration between two programs). Reading from a fd (named pipe) Also, |
Running:
imports the desiret items correctly, but then doesn't drop into the python shell (it quits instead).
Reversing the order of arguments:
has a "strange" effect: the bpython banner (the line with bpython & python version) is not printed anymore, also
$PYTHONSTARTUP
is ignored, and all the nice ncurses-based highlighting and completion functionalities are disabled. Is this the intended behavior? Why?Currently, to automate importing a module (e.g. for doing interactive testing during development on that module) I have to put my import line in a file, and do
bpython -i import_mymodule.py
. (I tend to use$PYTHONSTARTUP
just for importing some commonly used modules).The text was updated successfully, but these errors were encountered: