Title: `-i` and `-c `? · Issue #994 · bpython/bpython · GitHub
Open Graph Title: `-i` and `-c `? · Issue #994 · bpython/bpython
X Title: `-i` and `-c `? · Issue #994 · bpython/bpython
Description: Running: bpython -c 'from mymodule import *' -i imports the desiret items correctly, but then doesn't drop into the python shell (it quits instead). Reversing the order of arguments: bpython -i -c 'from mymodule import *' has a "strange"...
Open Graph Description: Running: bpython -c 'from mymodule import *' -i imports the desiret items correctly, but then doesn't drop into the python shell (it quits instead). Reversing the order of arguments: bpython -i -c ...
X Description: Running: bpython -c 'from mymodule import *' -i imports the desiret items correctly, but then doesn't drop into the python shell (it quits instead). Reversing the order of arguments: bp...
Opengraph URL: https://github.com/bpython/bpython/issues/994
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`-i` and `-c \u003ccode>`?","articleBody":"Running:\r\n\r\n```\r\nbpython -c 'from mymodule import *' -i\r\n```\r\n\r\nimports the desiret items correctly, but then doesn't drop into the python shell (it quits instead).\r\n\r\n\r\nReversing the order of arguments:\r\n\r\n```\r\nbpython -i -c 'from mymodule import *'\r\n```\r\n\r\nhas 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?\r\n\r\nCurrently, 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).","author":{"url":"https://github.com/fferri","@type":"Person","name":"fferri"},"datePublished":"2023-07-12T10:41:16Z","url":"https://github.com/bpython/bpython/issues/994"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:712ca5e0-a1e9-7f36-e77d-6f629b6c5cb2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A0F2:9E08E:41D33E:52FCE4:6B01FDAC |
| html-safe-nonce | ad0eaf8fafbcf3f52c953c729aa78d8f5b49c7d7932858b9bf85d6452b2fc02b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMEYyOjlFMDhFOjQxRDMzRTo1MkZDRTQ6NkIwMUZEQUMiLCJ2aXNpdG9yX2lkIjoiNTQ3MDMzMTE3MDQ1OTg3Njc4MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 34122bad014fa8b94a22e463311bf189abf7e63fafe07a27063275e9de00c303 |
| hovercard-subject-tag | issue:1800694029 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/bpython/bpython/994/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e29c24264de85f3233d8bac8676a1c1fb16d82a0c334fd82c173422ff4418c8a/bpython/bpython/issues/994 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e29c24264de85f3233d8bac8676a1c1fb16d82a0c334fd82c173422ff4418c8a/bpython/bpython/issues/994 |
| og:image:alt | Running: bpython -c 'from mymodule import *' -i imports the desiret items correctly, but then doesn't drop into the python shell (it quits instead). Reversing the order of arguments: bpython -i -c ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | fferri |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/bpython/bpython git https://github.com/bpython/bpython.git |
| octolytics-dimension-user_id | 8071396 |
| octolytics-dimension-user_login | bpython |
| octolytics-dimension-repository_id | 21508865 |
| octolytics-dimension-repository_nwo | bpython/bpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 21508865 |
| octolytics-dimension-repository_network_root_nwo | bpython/bpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width