Title: NameError: name '__file__' is not defined · Issue #284 · bpython/bpython · GitHub
Open Graph Title: NameError: name '__file__' is not defined · Issue #284 · bpython/bpython
X Title: NameError: name '__file__' is not defined · Issue #284 · bpython/bpython
Description: foo.py: print(__file__) $ bpython foo.py Traceback (most recent call last): File "foo.py", line 1, in
Open Graph Description: foo.py: print(__file__) $ bpython foo.py Traceback (most recent call last): File "foo.py", line 1, in
X Description: foo.py: print(__file__) $ bpython foo.py Traceback (most recent call last): File "foo.py", line 1, in <module> print(__file__) NameError: name '__file__' is not defined Bitb...
Opengraph URL: https://github.com/bpython/bpython/issues/284
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"NameError: name '__file__' is not defined","articleBody":"`foo.py`:\n\n``` python\nprint(__file__)\n```\n\n```\n$ bpython foo.py\nTraceback (most recent call last):\n File \"foo.py\", line 1, in \u003cmodule\u003e\n print(__file__)\nNameError: name '__file__' is not defined\n```\n\n---\n- Bitbucket: https://bitbucket.org/bobf/bpython/issue/284\n- Originally Reported By: [Steven Myint](http://bitbucket.org/myint)\n- Originally Created At: 2014-05-11T19:50:46.295\n","author":{"url":"https://github.com/ikanobori","@type":"Person","name":"ikanobori"},"datePublished":"2014-07-04T23:09:28.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":10},"url":"https://github.com/284/bpython/issues/284"}
| 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:efd73f3e-86b2-cd96-eb0d-cbafc0e2bbcf |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C76C:34B6FA:1914C73:22ABBC6:696AA86D |
| html-safe-nonce | 730f2a5fa49ed3e0402153597227d0702e4732a03f98590cf149bf4b50d4d6b3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNzZDOjM0QjZGQToxOTE0QzczOjIyQUJCQzY6Njk2QUE4NkQiLCJ2aXNpdG9yX2lkIjoiMjgzODg3MjU1NTc3MjM1NjcxNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 34dc5fc1f9c5db90f0868bf4398cbfbbf3aee3981ec7a57eb543ac31f458fd05 |
| hovercard-subject-tag | issue:37188923 |
| 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/284/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f962d18aea6396278bbf96dc6eaf53443909442ac04232cb903bb2c4d6dbcb0d/bpython/bpython/issues/284 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f962d18aea6396278bbf96dc6eaf53443909442ac04232cb903bb2c4d6dbcb0d/bpython/bpython/issues/284 |
| og:image:alt | foo.py: print(__file__) $ bpython foo.py Traceback (most recent call last): File "foo.py", line 1, in |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ikanobori |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3eaf9b8cf1badcd7041a8ad480b9d9b28bea0ef1cc821ca9ff20f2cc7f4fe4b9 |
| 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 | dd9a979046e6382bd084e2bd873bf65f797125ff |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width