Title: bpython don't like "__main__" · Issue #959 · bpython/bpython · GitHub
Open Graph Title: bpython don't like "__main__" · Issue #959 · bpython/bpython
X Title: bpython don't like "__main__" · Issue #959 · bpython/bpython
Description: Hi, I use bpython as replacement for the standart python's REPL (thanks linux's alias !). I try to start a script with bpython by using command like bpython script.py but I have no output. After some test, I discover that it come from th...
Open Graph Description: Hi, I use bpython as replacement for the standart python's REPL (thanks linux's alias !). I try to start a script with bpython by using command like bpython script.py but I have no output. After so...
X Description: Hi, I use bpython as replacement for the standart python's REPL (thanks linux's alias !). I try to start a script with bpython by using command like bpython script.py but I have no output. ...
Opengraph URL: https://github.com/bpython/bpython/issues/959
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"bpython don't like \"__main__\"","articleBody":"Hi,\r\n\r\nI use bpython as replacement for the standart python's REPL (thanks linux's alias !). I try to start a script with bpython by using command like `bpython script.py` but I have no output.\r\n\r\nAfter some test, I discover that it come from the test `if __name__ == \"__main__\"` os always false. It's due to the fact that __name__ is \"__console__\" with bpython .","author":{"url":"https://github.com/o101010","@type":"Person","name":"o101010"},"datePublished":"2022-05-02T19:24:38.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/959/bpython/issues/959"}
| 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:5272f91e-20db-7639-1024-5243c5558e15 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8606:23FC91:5E4324:83D5AB:6968DEC9 |
| html-safe-nonce | 63f124e34b54332bbfe9c119e6abee904ad4837f402141e429657f63d95eb6f9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NjA2OjIzRkM5MTo1RTQzMjQ6ODNENUFCOjY5NjhERUM5IiwidmlzaXRvcl9pZCI6IjgwODE0MDE2MjI1ODQ0MTc5OTMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 4a1ce20a234baa3bcd506ace3398e83eb5fe3bc248f75f939b70be5e4d52f451 |
| hovercard-subject-tag | issue:1223257761 |
| 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/959/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0e9e20d5f2ef24c454567e34c8bb4953fc0ada250f3eeddc0123579392c5e7a6/bpython/bpython/issues/959 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0e9e20d5f2ef24c454567e34c8bb4953fc0ada250f3eeddc0123579392c5e7a6/bpython/bpython/issues/959 |
| og:image:alt | Hi, I use bpython as replacement for the standart python's REPL (thanks linux's alias !). I try to start a script with bpython by using command like bpython script.py but I have no output. After so... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | o101010 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3c4e9f2fc1db52c609205138be6a397cfde4574cb54d53015014de30dd49f27e |
| 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 | 1fb1ea11f8c37dd4dd50347cca70d89824e93788 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width